Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting auth_code #17

Open
axlrosebcsERP opened this issue Oct 26, 2018 · 0 comments
Open

Getting auth_code #17

axlrosebcsERP opened this issue Oct 26, 2018 · 0 comments

Comments

@axlrosebcsERP
Copy link

Hello everyone.. I would like to know or where can i get auth_code?

Below is the code that i get from github..

        string app_id       = "{{app_id}}";
        string app_secret   = "{{app_secret}}";

        var short_code = "{{short_code}}";
       
        **//Please explain to me how or where i can get the auth_code?**
        var auth_code = "{{auth_code}}";
        
        var auth = GlobeApi.Auth(app_id, app_secret);

        Console.WriteLine("Login Url: ");
        Console.WriteLine(auth.getLoginUrl());
        Console.WriteLine("");

        Console.WriteLine("Get Access Token:");
        dynamic access_token = auth.getAccessToken(auth_code).access_token;

        **//This is the line that i got an error because access_token is null**
        Console.WriteLine(access_token);

        Console.WriteLine("");
        Console.Read();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant