Я столкнулся с проблемой при подключении к разъему QuickBooks.
Мои ключи правильные. Не нашел решения как это решить? Может кто-нибудь мне помочь?
ОБНОВЛЕНИЕ
Ниже мой поток
<flow name="Authorize">
<!-- INBOUND ENDPOINT -->
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/>
<quickbooks:auth-user config-ref="Quickbooks_Online" accessTokenUrl="https://oauth.intuit.com/oauth/v1/get_access_token" authorizationUrl="https://appcenter.intuit.com/Connect/Begin" callbackUrl="http://localhost:8090" requestTokenId="#[groovy:message.getSessionProperty('requestTokenIdentifier')]" requestTokenUrl="https://oauth.intuit.com/oauth/v1/get_request_token" doc:name="Quickbooks Online"/>
</flow>
<flow name="GetAccessToken">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8090" doc:name="HTTP"/>
<quickbooks:get-access-token config-ref="Quickbooks_Online" doc:name="Quickbooks Online"/>
<quickbooks:get-object config-ref="Quickbooks_Online" accessTokenId="#[groovy:message.getSessionProperty('accessTokenIdentifier')]" type="ACCOUNT" doc:name="Quickbooks Online"/>
<json:object-to-json-transformer doc:name="Object to JSON"/>
<logger message="O-JSON #[payload]" level="INFO" doc:name="Logger"/>
</flow>
Теперь я получил ошибку OAuthCredential.
Message : Failed to invoke getObject. Message payload is of type: OAuthCredentials
Code : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. ERROR CODE:3200, ERROR MESSAGE:message=ApplicationAuthenticationFailed; errorCode=003200; statusCode=401, ERROR DETAIL:null
(com.intuit.ipp.exception.AuthenticationException)
com.intuit.ipp.interceptors.HandleResponseInterceptor:83 (null)
2. org.mule.modules.quickbooks.api.exception.ExceptionInfo@a402a5[cause=message=ApplicationAuthenticationFailed; errorCode=003200; statusCode=401,errorCode=3200,message=ERROR CODE:3200, ERROR MESSAGE:message=ApplicationAuthenticationFailed; errorCode=003200; statusCode=401, ERROR DETAIL:null
] (org.mule.modules.quickbooks.api.exception.QuickBooksRuntimeException)
org.mule.modules.quickbooks.online.api.DefaultQuickBooksOnlineClient:107 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/modules/quickbooks/api/exception/QuickBooksRuntimeException.html)
3. Failed to invoke getObject. Message payload is of type: OAuthCredentials (org.mule.api.MessagingException)
org.mule.modules.quickbooks.online.processors.GetObjectMessageProcessor:153 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)