Is there any such LinkedIn API by which we can get or search contents by keyword like we do in normal LinkedIn web page?
I have tried the api https://api.linkedin.com/v2/posts but it response that
{
"serviceErrorCode": 0,
"message": "Resource posts does not exist",
"status": 404
}
Related
I am trying to generate ads reports
The create report API gives response as
{
"reportId": "amzn1.sdAPI.v1.p44571.6153E22B.2825ae5c-126d-422c-bf10-53d2d601189a",
"recordType": "campaigns",
"status": "IN_PROGRESS",
"statusDetails": "Report is being generated."
}
but the get report status API gives UNAUTHORIZED error
{
"code": "UNAUTHORIZED",
"details": "HTTP 401 Unauthorized",
"requestId": "6C1XJ33DSF546P3XZSD"
}
My first suggestion would be to ensure you’re using a valid access token.
You should also verify correct scope value and clientID in your header.
I am trying to translate some text using GCP translation service with REST api https://translation.googleapis.com/v3
I'm using API key auth method.
url and
Body
https://translation.googleapis.com/v3/projects/my-translator-1122333:translateText?key=thisismykey
{
"content": ["Hello"],
"sourceLanguageCode": "en",
"targetLanguageCode": "ru"
}
However I got
{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}
Could anyone explain me what is wrong I do?
Thanks
I have an Google Chrome extension that is using Tumblr API for making new posts in my blog.
And it was working fine until lately. At some point Tumblr API stopped accepting my requests.
This is what I am getting when requesting Tumblr API https://api.tumblr.com/v2/blog/chestozo.tumblr.com/post:
{
"meta": {
"status": 401,
"msg": "Unauthorized"
},
"response": [],
"errors": [
{
"title": "Unauthorized",
"code": 1016,
"detail": "Unable to authorize"
}
]
}
After searching the web for Tumblr API error codes I could not find anything about this error code.
Any idea what does it mean?
After some more investigation it turns out that this is due to Authorization header format that was used in my extension which was like this:
Authorization: OAuth oauth_nonce="gTle8" oauth_timestamp="1526133184"
oauth_signature_method="HMAC-SHA1" oauth_consumer_key="vGKikr...lQt4Ozi"
oauth_token="NPIRR5h...p0wQz" oauth_signature="kEf7C...2No99Q%3D"
There were no commas after different OAuth parameters. And it was working for some years :) until at some point probably Tumblr stopped supporting this old format.
All I had to do was to add commas after each parameters and all is good now:
Authorization: OAuth oauth_nonce="FBioO", oauth_timestamp="1526133278",
oauth_signature_method="HMAC-SHA1", oauth_consumer_key="vGKikr2u...t4Ozi",
oauth_token="eRPGCCe...DWaw4cr", oauth_signature="m0FmC...hU%3D"
We are trying to update details information for serveral Venues in behalf of our clients/users by using Foursquare API.
It works pretty well for most of the clients, and we are using their own personal oauth credentials most of the time.
BTW, we have a lot of problems with some clients/accounts, because we are getting this error when trying to update the venues:
{
"meta": {
"code": 403,
"errorType": "not_authorized",
"errorDetail": "User not authorized to edit venue",
"requestId": "59bba14e351e3d0e31fcf9f1"
},
"notifications": [
{
"type": "notificationTray",
"item": {
"unreadCount": 0
}
}
],
"response": {}
We’ve checked the API limits and everything it’s correct. We’ve also checked the account Oauth token several times and it’s correct. Even we are using the 'venues/managed’ endpoint to ensure that the given Oauth credential can manage the given Venue and everything looks fine.
Any idea about what's happening?
I want to access data throughthe foursquare API using the foursquare ID of a given establishement. I have the following data:
client_ip = "AAA"
client_secret = "BBB"
id_place = "4c4192d5d7fad13a8cb807da"
Why the next URL does not access the data for this particular establishment?
https://api.foursquare.com/v2/venues/explore?client_id=AAA&client_secret=BBB/4c4192d5d7fad13a8cb807da
What I get is the following
{
"meta": {
"code": 400,
"errorType": "invalid_auth",
"errorDetail": "Missing access credentials. See https://developer.foursquare.com/docs/oauth.html for details.",
"requestId": "5900bcf84c1f6734f1ee6b02"
},
"response": {}
}
You should read through the Foursquare documentation on venue details. Your request is not formatted correctly.
The following request should get you the details for that venue:
https://api.foursquare.com/v2/venues/4c4192d5d7fad13a8cb807da?client_id=AAA&client_secret=BBB&v=20170101