POST Get Auth Keys

 

Request Attributes

API Content Type: JSON

body

ATTRIBUTE DESCRIPTION
appKey
string(52)
mandatory
Example:
It is the app-key.
41b55ea2-1f9c-456a-87af-192023083858
secret_key
string(52)
mandatory
Example:
It is the secret key.
7ERWVKV6V0X2FJ0BX8N1673253536538
user_id
string(52)
mandatory
Example:
It is the User UID.
USRYJDXTRAXGKBJC0YQ1673253536537

Response Attributes

API Content Type: JSON

body

ATTRIBUTE DESCRIPTION
statuscode
string(3)
This is the status code corresponding to a particular message and is returned to the user. The different status codes corresponding to this API are mentioned below
Example: 200
status
boolean
This parameter indicates the status of API call.
Possible Values: true or false
object
This parameter gives the information about the result of the API response.
Attribute Description
client_id
string
Client Id
Example: NDFiNTVlYTItMWY5Yy00NTZhLTg3YWYtMTkyMDIzMDgzODU2
authorization_id
string
Authorization Id
Example: eK9FTjXtZRRoZgJy95OxV/t70pHDLWyUaFjEIQx+n7TCryVBvx4H2abTFj+PwFoU

Response Codes and Messages

statuscode status Description
200
true
Success
401
false
Your Session has expired
409
false
Conflict has occured
422
false
Invalid parameter
500
false
System error
https://console.konsign.com/api/oauth/getAuthKeys?appKey=APP_KEY&secret_key=SECRET_KEY&user_id=USER_ID
https://console.konsign.com/api/oauth/getAuthKeys?appKey=APP_KEY&secret_key=SECRET_KEY&user_id=USER_ID
REQUEST RESPONSE
var https = require('follow-redirects').https;
													var fs = require('fs');

													var options = {
														'method': 'GET',
														'hostname': 'console.konsign.com',
														'path':
															'/authentication/api/oauth/getAuthKeys?appKey=APP_KEY&secret_key=SECRET_KEY&user_id=USER_ID',
														'headers': {
														},
														'maxRedirects': 20
													};

													var req = https.request(options, function (res) {
														var chunks = [];

														res.on("data", function (chunk) {
															chunks.push(chunk);
														});

														res.on("end", function (chunk) {
															var body = Buffer.concat(chunks);
															console.log(body.toString());
														});

														res.on("error", function (error) {
															console.error(error);
														});
													});

													req.end();
												
											
var client = new RestClient("https://console.konsign.com/authentication/api/oauth/getAuthKeys?appKey=APP_KEY&secret_key=SECRET_KEY&user_id=USER_ID");
													client.Timeout = -1;
													var request = new RestRequest(Method.GET);
													IRestResponse response = client.Execute(request);
													Console.WriteLine(response.Content);
												
											
												{
													"head": {
														"responseTimestamp": "1526969112101",
														"version": "v1",
														"clientId": "C11",
														"signature": "TXBw50YPUKIgJd8gR8RpZuOMZ+csvCT7i0/YXmG//J8+BpFdY5goPBiLAkCzKlCkOvAQip/Op5aD6Vs+cNUTjFmC55JBxvp7WunZ45Ke2q0="
													},
													"body": {
														"resultInfo": {
															"resultStatus": "S",
															"resultCode": "0000",
															"resultMsg": "Success"
														},
														"txnToken": "fe795335ed3049c78a57271075f2199e1526969112097",
														"isPromoCodeValid": false,
														"authenticated": false
													}
												}