Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite221da7

Browse files
committed
Merge branch 'thefilin-ok_example_improvements'
2 parents3125799 +3a5f503 commite221da7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎scribejava-apis/src/test/java/com/github/scribejava/apis/examples/OdnoklassnikiExample.java‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ public abstract class OdnoklassnikiExample {
1818

1919
publicstaticvoidmain(String...args) {
2020
// Replace these with your client id and secret
21-
finalStringclientId ="your client id";
22-
finalStringpublicKey ="your apisecret";
23-
finalStringclientSecret ="yourclient secret";
21+
finalStringclientId="your api client id";
22+
finalStringpublicKey ="your apipublic key";
23+
finalStringsecretKey ="yourapi secret key";
2424

2525
finalOAuth20Serviceservice =newServiceBuilder()
2626
.apiKey(clientId)
27-
.apiSecret(clientSecret)
28-
.scope("VALUABLE ACCESS")
27+
.apiSecret(secretKey)
2928
.grantType(OAuthConstants.AUTHORIZATION_CODE)
3029
.callback("http://your.site.com/callback")
3130
.build(OdnoklassnikiApi.instance());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp