Function tweet::get_credentials [] [src]

pub fn get_credentials(contents: &str) -> (Token, Token)

Reads credentials from a string, i.e. gets them from a file.

Examples

Put the following into a file:

api-key: API_KEY_HERE
api-sec: API_SECRET_HERE
tok: OAUTH_TOKEN_HERE
tok-sec: TOKEN_SECRET_HERE