2.0.6 • Published 8 years ago

twitter-profile-media v2.0.6

Weekly downloads
40
License
MIT
Repository
github
Last release
8 years ago

twitter-profile-media Build Status

Get twitter profile image and banner

Install

npm install --save twitter-profile-media

Usage

import media from 'twitter-profile-media';
import tokens from 'twitter-tokens';

media(tokens, 'twitter').then(({ image, banner }) => {
  image;  // https://pbs.twimg.com/profile_images/615680132565504000/EIpgSD2K.png
  banner; // https://pbs.twimg.com/profile_banners/783214/1436401887
});

API

media(tokens, username)

Return a promise that resolves to user profile image and banner.

tokens

Type: object

Valid twitter tokens (dev credentials). You can use twitter-tokens to simplify getting tokens.

username

Type: string

Twitter username.

Related

License

MIT

2.0.6

8 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago