That hash, timestamp and key combination is invalid - api

note. (there are quite a few questions with this same problem but none worked for me.)
using this tool. https://www.md5.cz/
Adding the value of 1 to the timestamp then the private API and finally the public. API generates the hash, and pasting it followed by the public API key generates this error.
{
"code": "InvalidCredentials",
"message": "That hash, timestamp and key combination is invalid."
}
here the url: https://gateway.marvel.com/v1/public/characters?ts=5&apikey="publicapi"&hash="hash"

Related

I am trying to understand what exactly is signature query parameter in binance

I am trying to access this endpoint, where signature parameter has to be sent as query parameter
https://binance-docs.github.io/apidocs/spot/en/#current-open-orders-user_data
I am trying to understand what value for that signature key should be passed.
Firstly i thought it was secret key binance exchange given. But it was not, because when try to above endpoint it says that :
{
"code": -1022,
"msg": "Signature for this request is not valid."
}
^Postman
As you can see i passed my secret key as the value for signature key. It is not working. So what am i really missing here ? or do i need to do some transformations to the secret key ? please help me understand it and advance thanks!
It looks like you are putting the timestamp before the recvWindow in your query string.
timestamp is always the last parameter and the order of the parameters in the docs clearly puts recvWindow before timestamp.
I managed to get it working with query string recvWindow=60000&timestamp=1652512756366
Secret key and signature are two different things.
You need to sign the parameters with your secret key. This process produces a signature. And then you pass this resulting signature to the payload.
I'm not sure how to produce the signature in C++, however Binance docs show an example of signing the data in console with openssl (scroll right on all 3 examples).

MPGS retrieve session unexpected parameters

I tried to follow the online guideline to do the hosted session integration.
When testing Retrieve session api using postman, the error occurred.
{
"error": {
"cause": "INVALID_REQUEST",
"explanation": "Unexpected parameter 'merchantId'"
},
"result": "ERROR"
}
I did settle the correct parameter, merchantId and sessionId.
https://ap-gateway.mastercard.com/api/documentation/apiDocumentation/rest-json/version/latest/operation/Session%3a%20Retrieve%20Session.html?locale=en_US
You don't actually include the text "merchantId". You have to provide a valid merchant ID. Click on the "URL Parameters" tab on the link you posted.
{merchantId} Alphanumeric + additional characters COMPULSORY
The unique identifier issued to you by your payment provider."
The same goes for "sessionId".

qualtrics contacts api extRef

I am using the Qualtrics API to create contacts in a mailing list. In making a call to https://ca1.qualtrics.com/API/v3/mailinglists/ML_identity/contacts I am pushing a json string containing extRef. However, I keep getting the following response:
"httpStatus": "400 - Bad Request",
"error": {
"errorMessage": "Unexpected json key provided: extRef",
"errorCode": "RP_9"
},
The documentation clearly states extRef is what the field is called. What am I missing here?
The field should be externalDataRef instead of extRef (Qualtrics is inconsitent when it comes to that field). See: https://api.qualtrics.com/api-reference/reference/researchCore.json/paths/~1mailinglists~1{mailingListId}~1contacts/post
Note that the API call is specific to Research Core Contacts. XM Directory uses a different API call to add a contact.

Google Civic API: 400 Bad Request [duplicate]

This question already has answers here:
400 BAD request HTTP error code meaning?
(10 answers)
Closed 3 years ago.
This is my first time using an API, and i'm trying to figure out what exactly i'm doing wrong here. I'm trying to do the simple tutorial as seen here
I'm using Vb.net and the code i'm using is...
Public Sub New()
Dim webClient As New System.Net.WebClient
Dim iplookup As String = webClient.DownloadString("https://www.googleapis.com/civicinfo/v2/elections?key=<AIzaoKpBLK6uOqCJovCHmbHWYavDxx4cA-3_v8>")
console.WriteLine(iplookup)
End Sub
And I keep getting a 400 bad request error and i'm not sure what I'm doing wrong. Any and all help is much appreciated. As I said, this is my first time using an API so please dumb it down if you could. Also, I changed a few characters in my key to post this.
Accessing the link you used on the code, you get more details about the error, specifically this:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "keyInvalid",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}
Meaning you API Key is invalid. First of all, I surely don't think the "<" and ">" are part of the key, so try removing that first. Then, you should check you account to see if you are using the correct key. If it still doesn't work, check restrictions.
Go to your Google API Console, on the left side click on Credentials, and there should be your Key. If it's not, create one. Check your restrictions to make sure you can access it, then click the little copy button on the right side to make sure your are not copying it wrong. Replace the APIKEYHERE and nothing else on the following link with your key, making sure to not add anything else, and try to access it in your browser. If you have no setting in your API you should get an Error 403, meaning you didn't configure the access: googleapis.com/civicinfo/v2/elections?key=APIKEYHERE

Question about testIamPermissions method in Billing API

I'm trying to use cloudbilling.billingAccounts.testIamPermissions in the APIs Explorer, but I get an error.
API URL
https://developers.google.com/apis-explorer/?hl=ko#p/cloudbilling/v1/cloudbilling.billingAccounts.testIamPermissions?resource=billingAccounts%252F01183E-6A3E97-BE2C7A&resource=%257B%250A%257D&_h=1&
Error Result
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT"
}
}
The error message appears as 'Request contains an invalid argument', so the value entered in resource seems to be incorrect.
I entered billingAccounts / {billingAccountID} for resource, but I do not know why I get an error.
{billingAccountID} has entered the billing account ID you are using.
What value should be put in the resource?
You need to use your full ID "billingAccounts/012345-567890-ABCDEF`" as an string. Also avoid to share your private information for security reasons use examples instead.
Confirm that the other options of the API works for you.