Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  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@psn.com", "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. }