Service APIs - csapi-alerts - Access Denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2020 04:11 AM
Hello,
I am trying to load some Field Bulletins from the Product Alerts API
I have Access to the csapi-alerts in the https://anypoint.mulesoft.com/apiplatform
For the Return URIs I set the local IP and the localhost:5000 for the APP.
I tried to access the API through the Windows CMD and got the Access Token:
curl -s -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "client_id=<client_id>" -d "client_secret=<client_secret>" -d "grant_type=client_credentials" https://cloudsso.cisco.com/as/token.oauth2
Returned Access Token:
{"access_token":"gMirgET7WdXZRoeWswV819MYjADv","token_type":"Bearer","expires_in":3599}
curl -X GET -s -k -H "Accept: application/json" -H "Authorization: Bearer gMirgET7WdXZRoeWswV819MYjADv" https://apx.cisco.com/cs/api/v1/product-alerts/field-notice-bulletins
Returns: Access Denied
Furthermore I tried to Access with html form
<form action="https://apx.cisco.com/cs/api/v1/product-alerts/field-notice-bulletins" method="get">
<input type="hidden" name="Accept" value="application/json" />
<input type="hidden" name="Authorization" value="Bearer gMirgET7WdXZRoeWswV819MYjADv" />
<input type="submit" value="Get Bulletins" />
</form>
https://apx.cisco.com/cs/api/v1/product-alerts/field-notice-bulletins?Accept=application%2Fjson&Authorization=Bearer+gMirgET7WdXZRoeWswV819MYjADv
Returns: Please provide a valid token
Does someone know how I can get the Field Notice Bulletins?
- Labels:
-
Support APIs
