Advertisement
Guest User

Untitled

a guest
May 13th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. otvet:=send('GET', 'https://oauth.vk.com/token?grant_type=password&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&username='+logen+'&password='+pass+'&captcha_key=&captcha_sid=');
  2. token:=copy(otvet, pos('access_token":"', otvet), pos('","expires_in', otvet)-3);
  3. delete(token, 1, 15);
  4. id:=copy(otvet, pos('user_id":', otvet), pos('}', otvet)-3);
  5. delete(id, 1, 9);
  6. Memo1.Lines.Add(''+token+':'+id+'');
  7. Memo1.Lines.SaveToFile('token.txt');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement