question

Upvotes
Accepted
1 1 1 2

I can't get the token

Hello ,

I try to get the token , I'm using R and RJSONIO package .

link <- "https://api.trkd.thomsonreuters.com/api/TokenManagement/TokenManagement.svc/REST/Anonymous/TokenManagement_1/CreateServiceToken_1"

token <- fromJSON(getURL(link, userpwd = "xxxxxxxxxxx@thomsonreuters.com:mypassword",httpauth = 1L))

I have this error:

"There was an error while converting the URL parameters. The required parameter 'Username' was not found." 

Does any one try to use R and RJSONIO to get data from TRKD ?

Regards

Samuel

rkd-apirkdrjson
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
Accepted
13.7k 26 8 12

@samuel.beau, I'm not familiar with R, but this link might hold the answer.

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
206 1 2 2

Sorry, no direct experience of R but your code does not look sufficient.

The createservicetoken_1 operation needs the POST request body filled in with ApplicationID, Username and Password parameters.

If you look in support portal, https://www.trkd.thomsonreuters.com/SupportSite/TestApi/Op?svc=TokenManagement_1&op=CreateServiceToken_1, choose develop tab and json mode then you see full example (again not in R, but simply full example of what the http request needs to look like)

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.

Thanks but I was looking for some help in R

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.