Skip to content

Must specify atleast one of URL or handle #511

@KaranKhullar

Description

@KaranKhullar

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 ?

`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" )

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprexneeds a minimal reproducible example

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions