https://github.com/mkearney/apitools
Tools for making API packages in R
https://github.com/mkearney/apitools
apis apitools mkearney-r-package r-language web-api
Last synced: over 1 year ago
JSON representation
Tools for making API packages in R
- Host: GitHub
- URL: https://github.com/mkearney/apitools
- Owner: mkearney
- Created: 2017-08-20T20:44:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-25T16:11:34.000Z (almost 9 years ago)
- Last Synced: 2025-01-15T09:58:45.230Z (over 1 year ago)
- Topics: apis, apitools, mkearney-r-package, r-language, web-api
- Language: R
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
## apitools
Tools for making API wrapper packages
## Description
Creates a package with authorization (keys and tokens) and basic functions used to compose URL queries to interact with web APIs.
## Demo
In an interactive session, use the `new_api_pkg` function.
```{r, eval=FALSE}
## execute function
new_api_pkg()
```
You'll be then be prompted with questions as your API package is being built to fit your needs.
```{r, eval=FALSE}
## What's the name of the site hosting the API?(what do you want to name the package?)
apiPKG
## Do you need a key or token to access the API? (select appropriate number)
## 1: Key (a single alphanumeric string)
## 2: Token (multiple keys/secrets)
## 3: None (no authorization method)
1
## What's your key?
thisistheapikeyiwasprovided
## Which scheme does the API use?
## 1: http
## 2: https
## 3: Unsure
2
## What's the base URL? (e.g., api.twitter.com)
api.PKG.com
## What's the version? (e.g., v2.1)
v1.0
```
See the demo for yourself [here](apiPKG)