簡體   English   中英

從 XML-RPC 遷移到 REST

[英]Migrate from XML-RPC to REST

我正在使用 JAVA 並且我必須將每個 XML-RPC 調用轉換為 REST 調用。 我該怎么做?

我使用 KEAP(以前稱為“Infusionsoft”)作為 CRM。 我有很多這樣的電話:

Object[] objects=(Object[]) crmClient.execute("DataService.findByField", parameters);

我必須遵循的精確遷移過程是什么?

非常感謝

Once you're up and running and able to make REST calls (authorized, access token management, and able to successful make call) you'll need to reference the documentation for the xml api https://developer.keap.com/docs /xml-rpc/和 rest api https://developer.keap.com/docs/rest.rest/#!/並嘗試找到調用matches

For your findByField example the xml api linkhttps://developer.keap.com/docs/xml-rpc/#data-retrieve-a-record matches with this call in the REST api https://developer.keap.com/ docs/rest/#!/Contact/getContactUsingGET

返回數據的方式很可能是不同的格式,因此您需要確保接下來發生的任何代碼都可以訪問返回的數據。

然后重復所有其他呼叫。 並非每個 xml 調用在 rest 中都有 100% 匹配,因此如果遇到任何障礙,您可能需要發揮創造力。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM