Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/twitter-profile
Returns a twitter profile object when given some oauth details for a twitter user
https://github.com/binocarlos/twitter-profile
Last synced: 11 days ago
JSON representation
Returns a twitter profile object when given some oauth details for a twitter user
- Host: GitHub
- URL: https://github.com/binocarlos/twitter-profile
- Owner: binocarlos
- License: mit
- Created: 2014-01-17T23:54:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-18T00:15:12.000Z (almost 11 years ago)
- Last Synced: 2024-09-23T01:57:40.612Z (about 2 months ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
twitter-profile
===============Returns a twitter profile object when given some oauth details for a twitter user
## usage
```
var profile = require('./index.js');profile({
username:..., // twitter screen name
userid:..., // twitter user id
consumer_key:... // app key,
consumer_secret:... // app secret,
oauth_token:... // user token,
oauth_secret:... // user secret
}, function(error, user){// user is the users twitter profile (or an error)
})
```## installation
```
$ npm install twitter-profile
```## methods
### profile(options, function(){})
load the profile for a user with the following options:
* username - twitter screen name e.g. quarryjs
* userid - twitter user id - e.g. 576258381
* consumer_key - the key used by your app
* consumer_secret - the secret used by your app
* oauth_token - the OAUTH token returned for the user
* oauth_secret - the OAUTH secret returned for the user## license
MIT