Tasin
Tasin

Reputation: 11

Google Oauth By url For youtube api

I am creating a app to test Subscription Insert method . In the app i like to authenticate from url . Like i put google login page in webview . I heard a method that we can access token from url . I don't know how i can get it . please tell me the process and guide me how i can achieve it .

package com.google.api.client.auth.oauth;

import com.google.api.client.http.GenericUrl;
import com.google.api.client.util.Beta;
import com.google.api.client.util.Key;

@Beta
public class OAuthAuthorizeTemporaryTokenUrl
extends GenericUrl {
    @Key(value="oauth_token")
    public String temporaryToken;

    public OAuthAuthorizeTemporaryTokenUrl(String string) {
        super(string);
    }
}

Upvotes: 1

Views: 61

Answers (1)

Rica Mae Monteverde
Rica Mae Monteverde

Reputation: 56

kindly refer to this site: Obtaining authorization credentials

it is the last part of the URL: see example here

Upvotes: 1

Related Questions