Hi all,
I am trying to get the API to work, but I am struggling
I have a proper connection in my vb.net code, f.e. to get the price guide for
a part.
But when trying to add parameters (f.e. the new_or_used=U) my request fails.
I tried searching the forum over here and found the postman app to test the API
calls.
Do you guys have any information to set this up?
- I created a new file and added a sample URL
- Authorization tab:
* type = OAuth1.0
* add authorization data = request headers
* signature method = HMAC-SHA1
* consumerkey/consumer secret/access token/token secret correctly set
But I keep getting 401/bad_oauth_request
I assume I need to add the timestamp and nonce, but I don't see how to add
this without proper calculations??
Any1 who can help me to set this up, so I can try to figure out my original problem
myself (or help me with the parameters is also fine ofc )
Hi all,
I am trying to get the API to work, but I am struggling
I have a proper connection in my vb.net code, f.e. to get the price guide for
a part.
But when trying to add parameters (f.e. the new_or_used=U) my request fails.
I tried searching the forum over here and found the postman app to test the API
calls.
This is a valid request for price guide info that uses the new_and_used parameter:
Hi all,
I am trying to get the API to work, but I am struggling
I have a proper connection in my vb.net code, f.e. to get the price guide for
a part.
But when trying to add parameters (f.e. the new_or_used=U) my request fails.
I tried searching the forum over here and found the postman app to test the API
calls.
This is a valid request for price guide info that uses the new_and_used parameter:
In the Authorization tab:
Type: OAuth 1.0
Add authorization data to: Request headers
Signature Method: HMAC-SHA1
Consumer Key: Your BL consumer key "ConsumerKey"
Consumer Secret: Your BL consumer secret "ConsumerSecret"
Access Token: Your BL access token value "TokenValue"
Token Secret: Your BL access token secret "TokenSecret"
Postman should handle the timestamp, nonce and signature as they are part of
the OAuth 1.0 standard.
Double check that you're using the correct access token values for your current
IP address (I have a fixed IP address to make this easier).
Hope that helps!
Jonathan
I verified all of them, but keep getting the 401.. I notice I forgot to add the
description in my original post: Version rejected: invalid OAuth parameters.
Maybe this is clearer for some1..
I use my authorization parameters also in my vb.net program, and they work fine.
Hi all,
I am trying to get the API to work, but I am struggling
I have a proper connection in my vb.net code, f.e. to get the price guide for
a part.
But when trying to add parameters (f.e. the new_or_used=U) my request fails.
I tried searching the forum over here and found the postman app to test the API
calls.
This is a valid request for price guide info that uses the new_and_used parameter:
In the Authorization tab:
Type: OAuth 1.0
Add authorization data to: Request headers
Signature Method: HMAC-SHA1
Consumer Key: Your BL consumer key "ConsumerKey"
Consumer Secret: Your BL consumer secret "ConsumerSecret"
Access Token: Your BL access token value "TokenValue"
Token Secret: Your BL access token secret "TokenSecret"
Postman should handle the timestamp, nonce and signature as they are part of
the OAuth 1.0 standard.
Double check that you're using the correct access token values for your current
IP address (I have a fixed IP address to make this easier).
Hope that helps!
Jonathan
I verified all of them, but keep getting the 401.. I notice I forgot to add the
description in my original post: Version rejected: invalid OAuth parameters.
Maybe this is clearer for some1..
I use my authorization parameters also in my vb.net program, and they work fine.
Hi all,
I am trying to get the API to work, but I am struggling
I have a proper connection in my vb.net code, f.e. to get the price guide for
a part.
But when trying to add parameters (f.e. the new_or_used=U) my request fails.
I tried searching the forum over here and found the postman app to test the API
calls.
This is a valid request for price guide info that uses the new_and_used parameter:
In the Authorization tab:
Type: OAuth 1.0
Add authorization data to: Request headers
Signature Method: HMAC-SHA1
Consumer Key: Your BL consumer key "ConsumerKey"
Consumer Secret: Your BL consumer secret "ConsumerSecret"
Access Token: Your BL access token value "TokenValue"
Token Secret: Your BL access token secret "TokenSecret"
Postman should handle the timestamp, nonce and signature as they are part of
the OAuth 1.0 standard.
Double check that you're using the correct access token values for your current
IP address (I have a fixed IP address to make this easier).
Hope that helps!
Jonathan
I verified all of them, but keep getting the 401.. I notice I forgot to add the
description in my original post: Version rejected: invalid OAuth parameters.
Maybe this is clearer for some1..
I use my authorization parameters also in my vb.net program, and they work fine.
I found an issue a while back when writing vbcode for Google sheets.
I was getting the same error,but only on some specific API calls. If the utl
that is used to generate the signature has a '?', you need to replace
the '&' between the url and the parameters with a '%26'. All
other '&' need to be replaced with '%3F'.
Here is a chunk of my code:
// create the HMAC key by combining the consumer secret and token secret
const hmacKey = `${ConsumerSecret}&${TokenSecret}`;
//console.log(`hmacKey: ${hmacKey}`);
// create the signature base string by combining the method, URL, and parameters
// not sure why this is %26 and not '&'
// 'orders?filed=false' needs a %26
// 'orders/21839620' needs a &
if (url.includes('?' ) ) {
var signatureBaseString = `${method}&${encodeURIComponent(url,)}%26${encodeURIComponent(params)}`;
} else {
var signatureBaseString = `${method}&${encodeURIComponent(url,)}&${encodeURIComponent(params)}`;