googl_auth: Assign API tokens using OAuth2.0

Description Usage Arguments See Also Examples

View source: R/ApiKey.R

Description

You should register an application in order to get Client ID and Client Secret code. For Bit.ly, go to https://bitly.com/a/oauth_apps and in the field Redirect URIs: type for example "http://localhost:1410". For Goo.gl API Keys you should go to the http://console.developers.google.com/project/, select "APIs & auth", then "Credentials", then "add OAuth2.0 client ID" and lastly you select "Type:Other".

Usage

1
2
3
googl_auth(key = "", secret = "")

bitly_auth(key = "", secret = "")

Arguments

key

- Client ID

secret

- Client Secret

See Also

See http://dev.bitly.com/rate_limiting.html

See http://dev.bitly.com/authentication.html

See https://developers.google.com/url-shortener/v1/getting_started#APIKey

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
googl_token <-
  googl_auth(key = "806673580943-78jdskus76fu7r0m21erihqtltcka29i.apps.googleusercontent.com",
             secret = "qItL-PZnm8GFxUOYM0zPVr_t")
bitly_token <-
  bitly_auth(key = "be03aead58f23bc1aee6e1d7b7a1d99d62f0ede8",
             secret = "b7e4abaf8b26ec4daa92b1e64502736f5cd78899")

## End(Not run)

urlshorteneR documentation built on May 29, 2017, 3:48 p.m.