开发者

Is it possible to call API's from the provided url using curl

开发者 https://www.devze.com 2022-12-22 21:08 出处:网络
I开发者_如何学Go\'ve to call API\'s from a given url in my code. I try to call url using curl. nowI want to use APi\'s provided by this url in my code.A web service API typically just communicates ove

I开发者_如何学Go've to call API's from a given url in my code. I try to call url using curl. now I want to use APi's provided by this url in my code.


A web service API typically just communicates over the HTTP protocol. You send some specific requests and receive answers in a certain format, the same thing your browser does with websites. cURL is a great tool to do so.

The specifics will really depend on the API in question, you should study whatever documentation they provide for it.


If you are working with APIS that are based on xml and support the soap protocol a better idea will be just to use soap then curl (less code needed)

0

精彩评论

暂无评论...
验证码 换一张
取 消