[英]Can I get all the studio's detail from Mindbody to my application through the MindBody API?
I am working on an app where I need to integrate the MindBody API, and I have accessed it successfully, but the problem is that I am not sure whether I can get only my studio related data or all the studio related data which are available on MindBody Website.我正在开发一个需要集成 MindBody API 的应用程序,我已成功访问它,但问题是我不确定我是否只能获取我的工作室相关数据或所有可用的工作室相关数据MindBody 网站。
I have registered on MindBody website and got login credential for developer like:我已在 MindBody 网站上注册并获得了开发人员的登录凭据,例如:
username: Siteowner
用户名:网站Siteowner
password: abc
密码: abc
I have also downloaded sample iOS code from https://github.com/arrak-rukkharat/API-Integration-iOS and inserted my credential and it's working well.我还从https://github.com/arrak-rukkharat/API-Integration-iOS下载了示例 iOS 代码并插入了我的凭据,它运行良好。
But the main thing is I want all the studio's data not only mine.但最重要的是我想要工作室的所有数据,而不仅仅是我的。 So is it possible?那么有可能吗? Can I get all the studio's data through this API call?我可以通过这个 API 调用获取工作室的所有数据吗? Please provide me any sources related to this confusion.请向我提供与此混淆相关的任何来源。
thanks谢谢
Everything depends on which exactly data you what to request using API.一切都取决于您使用 API 请求什么数据。
You should be able to get limited information of any studio using your dev credentials only, sending them as SourceCredentials in your API requests.您应该能够仅使用您的开发凭据获取任何工作室的有限信息,将它们作为SourceCredentials在您的 API 请求中发送。
You need to be granted access by the studios to get all information (available with API) for any studio , sending also UserCredentials in you API requests - these are either your developer credentials (but username is with underscore in the beggining) or the studio's staff/owner user credentials.您需要获得工作室的访问权限才能获取任何工作室的所有信息(可通过 API 获得),并在您的 API 请求中发送UserCredentials - 这些是您的开发人员凭据(但用户名在开头带有下划线)或工作室的工作人员/owner 用户凭据。
More information about authentication (how to be granted access), SourceCredentials and UserCredentials is available in : Mindbodyonline documentation有关身份验证(如何授予访问权限)、SourceCredentials 和 UserCredentials 的更多信息,请参见: Mindbodyonline 文档
The other useful source is a list of API methods that provides an overview of each method.另一个有用的来源是 API 方法列表,其中提供了每种方法的概述。 Normally a method that requires UserCredentials is marked with a line 'This requires a staff credentials' or similar.通常,需要 UserCredentials 的方法标有一行“这需要员工凭据”或类似内容。 For example take a look at ClassService.UpdateClientVisits() documentation.例如查看ClassService.UpdateClientVisits()文档。 Methods that aren't marked with such line should provide you information for any studio without any additional authentication except your dev credentials (SourceCredentials).没有用这样的行标记的方法应该为您提供任何工作室的信息,除了您的开发凭据 (SourceCredentials) 外,无需任何其他身份验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.