2.0.6 • Published 7 years ago

twitter-profile-media v2.0.6

Weekly downloads
40
License
MIT
Repository
github
Last release
7 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

7 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago