Google云端硬盘-芭蕾舞女演员的OAuth2身份验证端点

时间:2018-07-05 04:48:47

标签: google-oauth2 ballerina

我试图在Ballerina Lang中为Google云端硬盘OAuth2身份验证创建自定义终结点

endpoint http:Client customDriveClient {
    url: "https://www.googleapis.com/auth/drive",
        auth: {
            scheme: http:OAUTH2,
            accessToken: accessToken,
            refreshToken: refreshToken,
            clientId: clientId,
            clientSecret: clientSecret,
            refreshUrl: "https://www.googleapis.com/auth/drive/oauth2/v3/token"
        }
};

注意:这里的accessToken,refreshToken,clientId和clientSecret来自单独的.conf文件。

但这会给出404响应。

0 个答案:

没有答案