`library(httr)
library(httpuv)
library(Rcpp)
in_endpoint <- oauth_endpoint(request = NULL,
authorize = "https://secure.indeed.com/account/oauth?client_id=YOUR CLIENT ID &redirect_uri=http://www.viewyourindeedcampaigns.com/oauth/indeed&response_type=code",
access = NULL,
base_url = "https://employers.indeed.com/api/v1/campaigns?perPage=30")
in_app <- oauth_app("your app name",
key = "client id",
secret = "client secret",
redirect_uri = "http://127.0.0.1:1410")
in_token <- oauth2.0_token(endpoint = in_endpoint,
app = in_app,
type = "code",
cache = T,
as_header = TRUE,
scope = "https://employers.indeed.com/api/v1/campaigns?perPage=30" )
I have been trying to access this page : "https://employers.indeed.com/api/v1/campaigns?perPage=30" using Indeed API.
I am not able to generate oauth2.0_token. Not sure what I am doing wrong ?
Error I get after authentication complete in browser :
Error in handle_url(handle, url, ...) :
Must specify at least one of url or handle
Indeed Documentation Link : http://opensource.indeedeng.io/api-documentation/docs/oauth/#before-you-start
Can someone please help ?
`