I am using V5 pinterest API,
https://api.pinterest.com/oauth/?client_id=<CLIENT_ID>&redirect_uri=<REDIRECT_URI>&response_type=code&client_secret=<CLIENT_SECRET>
after this get request I getting below error message
{
"status": "failure",
"code": 11,
"message": "API method not found.",
"endpoint_name": null,
"data": null
}
Any pointers will be helpful to get the successful authentication request to fetch the acess_token
Regards,
Rita
Based on the documentation, the endpoint should be,
https://www.pinterest.com/oauth/
So your request will be like this,
https://www.pinterest.com/oauth/?
client_id={YOUR_CLIENT_ID}&
redirect_uri={YOUR_REDIRECT_URI}&
response_type=code&
scope=boards:read,pins:read
Note that you need at least one scope in the request.
Related
I'm trying to get hotels catalogue from Amadeus api v3, so far, I found all informations like name, rating, offers ... but still have to get pictures to display the returned data on a front-office.
I tried : view=FULL and view=FULL_ALL_IMAGE doesn't make any changes on the response.
Any help please ? :(
I tried also this request :
'ghttps://api.amadeus.com/v3/hotels/images?hotelId={{Hotels_IDs}}&size=FULL&aspectRatio=16:9'
I get this error message :
`{
"code": 38196,
"title": "Resource not found",
"detail": "The targeted resource doesn't exist",
"status": 404
}`
The Hotel Search v3 doesn't return images. For workarounds check the migration guide.
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".
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.
I am trying to create a ticket using the freshdesk api (https://freshdesk.com/api#create_ticket) in Postman.
I have used the following: https://companyname.freshdesk.com/helpdesk/tickets.json
{ "helpdesk_ticket":
{ "description": "Details about the issue..."
, "subject": "Support Needed..."
, "email": "tom#outerspace.com"
, "priority": 1
, "status": 2
}
, "cc_emails": "ram#freshdesk.com,diana#freshdesk.com"
}
I am getting following response only:
{
"logout": "success"
}
I have tried clearing my browser cache many times. But the issue remains the same. Please someone suggest.
This must be a bug at the time the question is raised.
Now the API has been updated and it works smoothly, your endpoint should be https://yoururl.freshdesk.com/api/v2/tickets with Authorization Token in the header
I am also getting the same issues But When
I create the ssl login and check from curl then it works for me.
I have a software, which allows you to create a reply to a comment on your youtube video. Therefore I use the youtube API v3 comments.insert method.
POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token]
{
"snippet": {
"parentId": "parentId",
"textOriginal": "test message"
}
}
Most of the time the requests are successful. But for some comments I can't create replies this way. The API always returns:
{
"error": {
"errors": [
{
"domain": "youtube.comment",
"reason": "processingFailure",
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid."
}
}
I'm using a valid access token and the parentId is valid, too, because I can retrieve it through the API.
I took a look at the successful and failing requests, but didn't find any difference. So I assume that the request input isn't invalid as it is mentioned in the error message.
In my opinion this error isn't a transient error, because the same requests are still failing after some days.
I also tried to create a reply on such a comment through the API Explorer but the result was the same.
Does anyone have the same problems or am I doing something wrong?
When I go to the video and look at the comments directly, the comment with ID z13tjxdqnuygy1lga04cilcqxqipg1zbtbs has a "reply" option under it, while the comment with ID z13rgftjgw3bulyou04ccfnbjofztxg54yo0k does not. It seems that the user posted the comment via their Google+ page and disabled replies to their posts.