Vimeo方法登录联网apiAndroid

Vimeo method login networking api Android

首先,对不起我的英语,编辑我的 post 是惠康 :D 用这个方法可以拿到token吗? 我老板说vimeo的WebView登录不好,因为很难看到按钮"Allow".

所以,我正在尝试创建一个发送电子邮件和密码的自定义登录界面。

public Call<VimeoAccount> logIn(String email, String password, AuthCallback callback) {

但是我总是收到这个错误:

Something strange occurred. Please contact the app owners

谢谢

我刚刚回复了你对 的评论:

That login method is only available to certain applications with certain privileges. You can get a token for a custom login, but you'll have to do it through a "code grant redirect". This guide explains how to do it in on Android and this guide explains how it works on the API. The idea is - a user will click a login button. It brings them to web. They log in on our website. Then we direct them back to your app.

我们使用重定向的原因是如果应用程序开发人员可以看到 Vimeo 用户的密码,这将是一个安全问题。因此,目前,使用 Vimeo API 进行身份验证的唯一方法是通过代码授权重定向(如引用评论中所指定)。这意味着您必须 link 到 browser/webview.

编辑

对于其他人,官方 Vimeo Android SDK 是 here