Skip to content

Commit 8df0b90

Browse files
author
soh boon keong
committed
update README.md
1 parent dfa9c88 commit 8df0b90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ authentication with SHA256WITHRSA.
199199

200200
#### formData
201201
Data which should be passed in the request (for `POST` requests
202-
usually). For `GET` requests, set this value to `null`.
202+
usually). For `GET` requests, this value is not necessary.
203203

204204
#### password
205205
The password of the keystore. Not required for L1.
@@ -346,7 +346,7 @@ try {
346346
AuthParam authParam = new AuthParam();
347347

348348
authParam.url = URI.create("https://<<URL>>/api/v1");
349-
authParam.httpMethod = "GET";
349+
authParam.httpMethod = "POST";
350350
authParam.appName = "<<appId>>";
351351
authParam.appSecret = "<<appSecret>>";
352352
authParam.formData = formData;
@@ -385,7 +385,7 @@ try {
385385
AuthParam authParam = new AuthParam();
386386

387387
authParam.url = URI.create(baseUrl);
388-
authParam.httpMethod = "GET";
388+
authParam.httpMethod = "POST";
389389
authParam.appName = "<<appId>>";
390390
String certFileName = "certificates/ssc.alpha.example.com.p12";
391391
String password = "<<passphrase>>";
@@ -428,7 +428,7 @@ try {
428428
AuthParam authParam_WWW = new AuthParam();
429429
String baseUrl_WWW = String.format("https://<<URL_WWW>>/api/v1?%s", queryString);
430430
authParam_WWW.url = URI.create(baseUrl_WWW);
431-
authParam_WWW.httpMethod = "GET";
431+
authParam_WWW.httpMethod = "POST";
432432
authParam_WWW.appName = "<<appId_WWW>>";
433433
String certFileName = "certificates/ssc.alpha.example.com.p12";
434434
String password = "<<passphrase>>";
@@ -478,7 +478,7 @@ String queryString = queryData.toString(true);
478478

479479
try {
480480
AuthParam authParam_WOG = new AuthParam();
481-
authParam_WOG.httpMethod = "GET";
481+
authParam_WOG.httpMethod = "POST";
482482
authParam_WOG.appName = "<<appId_WOG>>";
483483
authParam_WOG.appSecret = "<<appSecret_WOG>>";
484484
String baseUrl_WOG = String.format("https://<<URL_WOG>>/api/v1?%s", queryString);

0 commit comments

Comments
 (0)