question

Upvote
Accepted
20 2 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 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
32.2k 40 11 20

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 512.0 KiB each and 1.0 MiB total.

Upvotes
20 2 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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