如何重定向用户以登录到服务?

问题描述 投票:0回答:1

我正在与Pinterest API集成的Android Studio中创建应用程序。与其他服务一样,Pinterest要求用户通过使用某些参数(响应类型,范围,client_id等)将其重定向到其站点来登录其帐户。这是他们将请求定向到用户的示例:

https://api.pinterest.com/oauth/?
    response_type=code&
    redirect_uri=https://mywebsite.com/connect/pinterest/&
    client_id=12345&
    scope=read_public,write_public&
    state=768uyFys

我如何使用它来将用户定向到Pinterest登录页面?这是我需要使用Retrofit的GET或POST请求吗?

链接到Pinterest API文档:https://developers.pinterest.com/docs/api

先谢谢您,

汉娜

android api retrofit2 pinterest mobile-development
1个回答
0
投票

Pinterest在这里有一个Android SDK:https://developers.pinterest.com/docs/sdks/android/在身份验证下,他们已经使用SDK创建了示例登录名

© www.soinside.com 2019 - 2024. All rights reserved.