I am trying to get access to data on the Uber API using R. I have created an account with their API and now have the following information assigned to me:
name of the app (I created this.) client id server token secret
I also have a username and password for my usual account, but I didn't think that I needed this for the API use. I am not sure that I am using the correct information for the correct arguments.
myapp=oauth_app("nameofmyapp",
key="client id",
secret="secret"
)
sig=sign_oauth1.0(myapp,
token="server token",
token_secret="secret"
)
homeTL=GET("https://api.uber.com/v1/products",
sig
)
homeTL
json1=content(homeTL)
json1
When I check to see what is in json1 (the last line) it appears as though the connection was never authenticated. I get
message
[1] "No authentication provided."
$code
[1] "unauthorized"
Any help would be appreciated. Thanks.