Advertisement
Tustin

psn-csharp auth example

Sep 3rd, 2016
1,134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2. using System.Threading.Tasks;
  3. using PSN;
  4. namespace ConsoleApplication1
  5. {
  6.     class Program
  7.     {
  8.         static async void login()
  9.         {
  10.             Auth auth = new Auth("[email protected]", "password");
  11.             OAuthTokens tokens = await auth.Make();
  12.             Console.WriteLine(tokens.Authorization);
  13.         }
  14.         static void Main(string[] args)
  15.         {
  16.             Task task = new Task(login);
  17.             task.Start();
  18.             task.Wait();
  19.             Console.ReadLine();
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement