Update auth.md (#151)

Updated scope enum
This commit is contained in:
Jim 2017-06-07 20:16:28 +02:00 committed by Jonas Dellinger
parent 512d3d76ad
commit f4c62377b0

View File

@ -122,7 +122,7 @@ static void Main(string[] args)
//Set this to localhost if you want to use the built-in HTTP Server //Set this to localhost if you want to use the built-in HTTP Server
RedirectUri = "http://localhost", RedirectUri = "http://localhost",
//How many permissions we need? //How many permissions we need?
Scope = Scope.USER_READ_PRIVATE, Scope = Scope.UserReadPrivate,
}; };
//This will be called, if the user cancled/accept the auth-request //This will be called, if the user cancled/accept the auth-request
auth.OnResponseReceivedEvent += auth_OnResponseReceivedEvent; auth.OnResponseReceivedEvent += auth_OnResponseReceivedEvent;
@ -176,7 +176,7 @@ static void Main(string[] args)
//Your client secret UNSECURE!! //Your client secret UNSECURE!!
ClientSecret = "XXXXXXXXXXXX", ClientSecret = "XXXXXXXXXXXX",
//How many permissions we need? //How many permissions we need?
Scope = Scope.USER_READ_PRIVATE, Scope = Scope.UserReadPrivate,
}; };
//With this token object, we now can make calls //With this token object, we now can make calls
Token token = auth.DoAuth(); Token token = auth.DoAuth();