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

Commitbda9cf3

Browse files
committed
Update README.md
1 parentc1e84ff commitbda9cf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ var httpMethod = 'GET',
6565
},
6666
consumerSecret='kd94hf93k423kf44',
6767
tokenSecret='pfkkdhi9sl3r4s00',
68+
// generates a RFC3986 encoded, BASE64 encoded HMAC-SHA1 hash
6869
encodedSignature=oauthSignature.generate(httpMethod, url, parameters, consumerSecret, tokenSecret),
70+
// generates a BASE64 encode HMAC-SHA1 hash
6971
signature=oauthSignature.generate(httpMethod, url, parameters, consumerSecret, tokenSecret,
7072
{ encodeSignature:false}),
7173
;
7274
```
7375

74-
The`encodedSignature` variable will contain the BASE64 encoded HMAC-SHA1 hash, ready to be used as a query parameter in a request:`tR3%2BTy81lMeYAr%2FFid0kMTYa%2FWM%3D`.
76+
The`encodedSignature` variable will contain theRFC3986 encoded,BASE64 encoded HMAC-SHA1 hash, ready to be used as a query parameter in a request:`tR3%2BTy81lMeYAr%2FFid0kMTYa%2FWM%3D`.
7577

7678
The`signature` variable will contain the BASE64 HMAC-SHA1 hash, without encoding:`tR3+Ty81lMeYAr/Fid0kMTYa/WM=`.
7779

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp