我正在尝试链接到 mindbody API,以便在此 git 中使用 RoR 预订会员:https ://github.com/mindbody/API-Examples/tree/master/Ruby
错误:
Wasabi::Resolver::HomeController#index 中的 HTTPError
根据日志,我没有输入正确的详细信息。但是,我已经更改了 home_controller 控制器文件中的源和用户凭据。
source_credentials = {:SourceName => 'MySourceName', :Password => 'MySourcePassword', :SiteIDs => site_ids }
user_credentials = { :Username => 'MyUsername', :Password => 'MyUserPassword', :SiteIDs => site_ids }
提前致谢!
SOAP 日志:
_getClasses_request.xml
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<n1:GetClasses xmlns:n1="http://clients.mindbodyonline.com/api/0_5">
<n1:Request>
</n1:Request>
</n1:GetClasses>
</env:Body>
</env:Envelope>
_getClasses_response.xml:
<soap:Body>
<GetClassesResponse
xmlns="http://clients.mindbodyonline.com/api/0_5">
<GetClassesResult>
<Status>InvalidCredentials</Status>
<Message>SourceCredentials must be provided.</Message>
<XMLDetail>Full</XMLDetail>
<ResultCount>0</ResultCount>
<CurrentPageIndex>0</CurrentPageIndex>
<TotalPageCount>0</TotalPageCount>
</GetClassesResult>
</GetClassesResponse>
</soap:Body>
</soap:Envelope>