Comments (7)
Which demo? Did you run library(httr)
first?
from httr.
oauth2-github.r
yeah, library(httr) first,
then oauth_endpoint ok
then oauth_app ok
then oauth2.0_token got error
from httr.
> library(httr)
> oauth_app
function (appname, key, secret = NULL)
{
if (is.null(secret)) {
env_name <- str_c(toupper(appname), "_CONSUMER_SECRET")
secret <- Sys.getenv(env_name)
if (secret == "") {
stop("Couldn't find secret in environment variable ",
env_name, call. = FALSE)
}
message("Using secret stored in environment variable ",
env_name)
}
list(secret = secret, key = key)
}
<environment: namespace:httr>
> oauth2.0_token
Error: object 'oauth2.0_token' not found
> oauth2.0
Error: object 'oauth2.0' not found
> oauth_app()
Error in toupper(appname) :
argument "appname" is missing, with no default
> oauth2.0_token()
Error: could not find function "oauth2.0_token"
from httr.
What version of httr are you using? I think this was a bug in 0.1
from httr.
i used install_github("httr")
to install httr, the version is 0.2
from httr.
Try restarting R and/or installing from CRAN.
from httr.
Error in structure(list(appname = appname, secret = secret, key = key), :
object 'appsecret' not found...........i'm getting the error like this
from httr.
Related Issues (20)
- more docs on creating a complex request body HOT 1
- Add mime type qs::qread() to httr::content() HOT 1
- lexical error: invalid char in json text. HOT 1
- GET request with an empty header HOT 1
- Vectorise functions HOT 1
- Can't get content for FTP directory listing HOT 4
- OAuth callback url is encoded while it shouldn't.
- R CMD check failure on musl-based systems HOT 1
- Release httr 1.4.5
- is.character(headers) is not TRUE HOT 1
- httr & use_proxy vs RCurl behaviour difference HOT 1
- Forbidden with httr, but works with py requests HOT 7
- Release httr 1.4.6
- Make file upload seekable
- Release httr 1.4.7
- Use httpbin mirror
- modify_url() cannot handle API versioning HOT 1
- httr 1.4.7: Option seekfunction (20167) has unknown or unsupported type HOT 4
- Upkeep for httr (2023)
- Bug: Executing `http::GET()` in parallel results in an error when no single core GET request was issued before. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httr.