question

Upvote
Accepted
20 1 1 4

'curl' example please ?

Hello, I keep receiving

{"fault":{"faultstring":"Failed to resolve API Key variable request.header.X-AG-Access-Token","detail":{"errorcode":"steps.oauth.v2.FailedToResolveAPIKey"}}}

Can someone please provide an example of request with 'curl'? I could not find any, and I get the message above no matter what syntax I use :(

Thank you. Adrian.

intelligent-tagging-apiintelligent-taggingopen-calais-apisemantic-metadata-tagginghttp
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
23k 22 9 14

Looks like you are missing access token. To receive a unique access token, one can register here:

https://iameui-eagan-prod.thomsonreuters.com/iamui/UI/createUser?app_id=Bold&realm=Bold

If you try the API with "TRY IT OUT" button, you will be able to see the mandatory fields, and also curl request that is being generated.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
20 1 1 4

Many thanks !

Explicitly, the syntax is

curl \
  -X POST \
--header "Content-Type: text/raw" \ --header "Accept: application/json" \
--header "x-ag-access-token: your-key-here" \
--header "outputFormat: xml/rdf" \
-d "Text to analyse here" \
"https://api.thomsonreuters.com/permid/calais"
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea