Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void LogIn()
- {
- string username = "hello";
- string password = "password";
- string url = "http://" + username + ":" + password + "/api/token/";
- HttpWebRequest tokenRequest = (HttpWebRequest)WebRequest.Create(url);
- tokenRequest.Method = "POST";
- HttpWebResponse tokenResponse = (HttpWebResponse)tokenRequest.GetResponse();
- Debug.Log (tokenResponse);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement