[英]Mindbody API: How to pass a list of values to a parameter in postman?
I am new to API integration and working on a project associated with Mindbody API.我是 API 集成的新手,正在从事与 Mindbody API 相关的项目。
Take API documentation for getting clients' services as an example, as the picture shows, I had to specify the client's ID and program's ID to get the data.以获取客户服务的API文档为例,如图所示,我必须指定客户ID和程序ID才能获取数据。 But this approach is limited to a single service related to a client only .但这种方法仅限于与一个客户端相关的单个服务。 However, what if I want ALL the services that ALL the clients ever had?但是,如果我想要所有客户曾经拥有的所有服务怎么办? What would be the most efficient approach to have a list for the parameters, ClientID and ProgramID?获得参数、ClientID 和 ProgramID 列表的最有效方法是什么? enter image description here在此处输入图像描述
(Mindbody API Documentation: https://developers.mindbodyonline.com/PublicDocumentation/V6 ) (Mindbody API 文档: https://developers.mindbodyonline.com/PublicDocumentation/V6 )
Thank you in advance!先感谢您!
Use the Clients endpoint to get the clients, then iterate through that list requesting all ClientServices for each Client.使用Clients 端点获取客户端,然后遍历该列表,为每个客户端请求所有ClientServices 。
Note that the requests could be paginated, so you may need to make multiple requests to get all the Clients and then multiple ClientServices requests per client, depending on how the limits are all configured.请注意,请求可以分页,因此您可能需要发出多个请求以获取所有客户端,然后每个客户端发出多个 ClientServices 请求,具体取决于所有限制的配置方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.