The endpoint to get shares by owner is not working for me.
This is the full URL I'm using:
https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:organization:{ID}
But I receive this error:
{"serviceErrorCode":0,"message":"Invalid query parameters passed to request","status":400}
I know the access token I'm using is working, if I try to get one share by ID the response is a success, using the following URL:
https://api.linkedin.com/v2/shares/urn%3Ali%3Ashare%3A{ID}
Am I doing something wrong? For me this error looks like a bug in the API
Related
Hi I am facing issue when I am using graph API so I am using delegate Permission access on behalf of user and I am successfully able to get Code and state but after I try to get access token using code value in Postman and also using dot net core so 9i am getting error The request body must contain the following parameter: 'grant_type and here I also pass grant_type =authorization_code but still I am getting same error
Please any one help me how to get access token enter image description here
I have try Postman and also using code but I am getting same error
error_description": "AADSTS900144: The request body must contain the following parameter: 'grant_type'.\r\nTrace
I use the application android and get a token when making a request:
oauth2:server:client_id:xxxxxx.apps.googleusercontent.com:api_scope:profile email openid
After that I want to get information on this token on the web server.
I'm trying to use:
https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=xxx
But I do not get to get the data, how can I get it?
To get a real token, you need to correct the request for url:
https://www.googleapis.com/oauth2/v4/token
and pass parameters by the POST method:
grant_type=authorization_code&client_id=xxxx.apps.googleusercontent.com&client_secret=xxxx&code={code}
code - a token of the type previously obtained 4/xxxxx
Hi I am using postman client for Chrome to run my rest api calls. I am trying to update issue in JIRA via rest API. I have referred to JIRA API also for updating an issue.
I am using PUT method to update an issue fields. Here is the syntax.
PUT /rest/api/2/issue/{issueIdOrKey}
I am trying to update summary field like this.
{"update":{"summary":[{"set":"Bug in business logic"}]}}
But it is giving me the 400 bad request error.
and in the body its showing message "No content to map to Object due to end of input".
Please find the attached screenshot for more reference. Thanks in Advance.Jira Update issue
In postman rest API client, add the json object to Body as in the below picture.
I added authorization as Basic Authorization and provided JIRA credentials.
Note that the body should be raw and type should be JSON(application/json) instead of Text(default).
Response for this PUT request is 204 when update is successful.
Here is REST API Documentation for additional options.
When I'm calling the "search API" from AngelList (https://angel.co/api/spec/search) with the following URL:
https://api.angel.co/1/search?query=barack&type=Locations&callback=?access_token=707cfhgbdae43060876388ac584bf4cf4fdb
The result gives me an error: {"error":"access_denied","error_description":"You must pass in an access token when making this request."}
I'm not sure why this is happening because when I'm calling other APIs with the same access_token, these run successfully.
How I can solve this situation?
I think you have a typo in your URL. You need an extra & character for the access_token parameter. And probably you can remove your callback parameter as at this point you can retrieve the data from the response message.
Your URL should be like this:
https://api.angel.co/1/search?query=barack&type=LocationTag&access_token=707cfhgbdae43060876388ac584bf4cf4fdb.
It solved my problem at least :).
I have a problem with adding notifications on Facebook.
According to:
https://developers.facebook.com/docs/reference/api/user/#notifications
I prepare request:
https://graph.facebook.com/FACEBOOK_USER_ID/notifications?template=hello&href=track_123&access_token=USER_ACCESS_TOKEN
but I get the response:
Sorry, something went wrong.
We're working on getting this fixed as soon as we can.
Is this request correct?
There is a slight problem in the above url , access token to be used is not of the user but of your app. First you need to get your app access_token by the use of the following get call.
GET https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID
&client_secret=YOUR_APP_SECRET
&&grant_type=client_credentials
This will return you app access token which you need to use in the above url.
Hopefully this will solve your problem.