Skip to content

Commit 12ad7cd

Browse files
committed
Update instruction in readme
1 parent c7c8bbd commit 12ad7cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Method:
187187

188188
Params:
189189
* baseString
190-
* secret
190+
* privateKey
191191

192192
```java
193193
String baseString = "GET&https://<<URL>/api/v1/&ap=裕廊坊 心邻坊&<<authPrefix>>_app_id=<<appId>>&<<authPrefix>>_nonce=7231415196459608363&<<authPrefix>>_signature_method=SHA256withRSA&<<authPrefix>>_timestamp=1502164219425&<<authPrefix>>_version=1.0&oq=c# nunit mac&q=c# nunit mac";
@@ -235,11 +235,13 @@ String certFileName = "certificates/alpha.test.p12";
235235
String password = "<<passphrase>>";
236236
String alias = "alpha";
237237
String appId = "<<appId>>";
238+
String secret = null;
239+
ApiList formList = null;
238240
String nonce = null;
239241
String timestamp = null;
240242

241243
try {
242-
String signature = ApiAuthorization.getToken("http://api.test.io/l2", "<<authPrefix>>", "get", url, appId, null, null, password, alias, certFileName, nonce, timestamp);
244+
String signature = ApiAuthorization.getToken("http://api.test.io/l2", "<<authPrefix>>", "get", url, appId, secret, formList, password, alias, certFileName, nonce, timestamp);
243245
} catch (ApiUtilException e) {
244246
e.printStackTrace();
245247
}

0 commit comments

Comments
 (0)