Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getToken()
- {
- $clientID = "a65000ee0c57f2e37260e90c375c3";
- $clientSecret = "MyLongSecretCode";
- $exportFile = "myfile.txt";
- $userName = "somebody@somewhere.com";
- $userPass = "myPassword123";
- $sourceWebsite = "https://api.myfox.me/oauth2/token?client_id=" . $clientID . "&client_secret=" . $clientSecret . "&username=" . $userName . "&password=" . $userPass . "&grant_type=password";
- file_put_contents($exportFile, fopen($sourceWebsite , 'r'));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement