Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //chaves
- $key = 'ausJc1fibKRZTnDRfIm9oJLmd';
- $key_secret= 'RmUmMgORdG61sB4aneAaeq9DkCDVF8NP2kjfgWXhduGeYxtjh2';
- $token= '953601434326650880-8VSHcSaC5h0JhebzSCdm3vOt2o0FDe0';
- $token_secret='VS8fpqlujus77ATlYsDOgvSp2lkzO3BCmjOLiRnLW1NPD';
- //requisição da biblioteca
- require 'C:\xampp\htdocs\tw\autoload.php';
- use Abraham\TwitterOAuth\TwitterOAuth;
- //conexao
- $conn = new TwitterOAuth($key, $key_secret, $token, $token_secret);
- $valida = $conn->get("account/verify_credentials");
- //pega status
- $status = $conn->get("statuses/home_timeline", ["count" => 25, "exclude_replies" => true ]);
- //mostra status
- print_r($status)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement