Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function getToken()
  2. {
  3. $clientID = "a65000ee0c57f2e37260e90c375c3";
  4. $clientSecret = "MyLongSecretCode";
  5. $exportFile = "myfile.txt";
  6. $userName = "somebody@somewhere.com";
  7. $userPass = "myPassword123";
  8. $sourceWebsite = "https://api.myfox.me/oauth2/token?client_id=" . $clientID . "&client_secret=" . $clientSecret . "&username=" . $userName . "&password=" . $userPass . "&grant_type=password";
  9.  
  10. file_put_contents($exportFile, fopen($sourceWebsite , 'r'));
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement