daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Sep 22nd, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4.     <meta charset="UTF-8" />
  5.     <title>Test</title>
  6.     <script type="text/javascript" src="/js/jquery.min.js"></script>
  7.     <script type="text/javascript" src="/js/sha1.lib.js"></script>
  8.     <script type="text/javascript" src="/js/oauth.lib.js"></script>
  9.     <script type="text/javascript" src="/js/fanfou.js"></script>
  10. </head>
  11. <body>
  12. <a id="sendStatus" href="###">Send a status</a>
  13. <script type="text/javascript">
  14. $(document).ready(function() {
  15.     var access_token = {
  16.         oauth_token        : window.localStorage.getItem("oauth_token"),
  17.         oauth_token_secret : window.localStorage.getItem("oauth_token_secret")
  18.     }
  19.     $('#sendStatus').click(function() {
  20.         FF.fanfou_request("/statuses/update", "POST", access_token, {'status' : 'Hello 饭否'}, function(e) {
  21.             console.log(e);
  22.         });
  23.     });
  24. });
  25. </script>
  26. </body>
  27. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top