twilio REST API:严格后端? [英] twilio REST API: strictly backend?

查看:66
本文介绍了twilio REST API:严格后端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JavaScript聊天客户端SDK 是缺少REST API具有的某些功能,例如列表用户.第一人称聊天客户端是否应该使用REST API来补充客户端SDK中的漏洞,或者只是一般而言?还是严格地用于后端管理?

The JavaScript chat client SDK is missing some functionality that the REST API has, like list users. Should the 1st person chat client be using the REST API as well to supplement gaps in the client SDK or just in general? Or is it strictly for backend management?

推荐答案

Twilio开发人员在此处传播福音

Twilio developer evangelist here

Chat SDK本身并没有提供与REST API相同的所有访问权限,因为这将使该访问权限直接交到Chat SDK的所有用户手中.限制将应用程序的用户列出为REST API之类的事情意味着您的应用程序可以更好地控制这些功能,并且可以限制访问或仅在特定情况下使用它.

The Chat SDK itself doesn't give all of the same access as the REST API because that would put that access directly in the hands of all users of the Chat SDK. Restricting things like listing users of the app to the REST API means that your application has greater control over those functions and can restrict access or use it only in specific circumstances.

正如我们在另一个问题中讨论的那样,您如何实际管理应用程序中的内容,无论是通过调用REST API还是将数据存储在自己的用户数据库中,都取决于您自己,并且取决于有效的方法最适合您的应用程序.

As we've discussed in your other question, how you actually manage things in your application, whether it is by calling to the REST API or storing data in your own user database, is up to you and depends on what will work best for your application.

这篇关于twilio REST API:严格后端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆