如何在PHP脚本中使用LINUX格式的CURL请求 [英] How to work with CURL requests in LINUX format in a PHP script

查看:62
本文介绍了如何在PHP脚本中使用LINUX格式的CURL请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我购买了一个API。我不知道如何正确使用它。我对CURL请求的编写方式有所了解。但是使用他们的文档我很困惑如何使用它。我有一个卷曲请求,格式为

curl -g -H接受:application / json\

-upartner_code-timestamp:digest\

http://halalbooking.com/api/v2 \

/ places?\

holiday_type = resort& \

currency = USD& \ ...

我应该如何使用它?我有合作伙伴代码和时间戳格式。有人可以帮助我吗?



我尝试了什么:



我无法尝试。我不知道在哪里开始。

解决方案

Quote:

我已经购买了一个API。我不喜欢我不知道如何正确使用它。



你的意思是他们没有帮助他们付费的客户吗?

没有多少可能性:

您最好在用户论坛上获得其他用户的帮助。

您应该得到作者的帮助,如果他们没有帮助,请回复您的钱。



避免随机论坛与产品无关。


此外,除了API支持外,请阅读curl的手册页...



curl - Manual [ ^ ]

卷曲 - 如何使用 [ ^

I have purchased an API. I don't know how to work with it exactly. I know a bit about how CURL requests are made. But using their documentation I am very confused how to work with it. I have a curl request in the format
"curl -g -H "Accept: application/json" \
-u "partner_code-timestamp:digest" \
"http://halalbooking.com/api/v2\
/places?\
holiday_type=resort&\
currency=USD&\..."
How should I use it? I have the partner code and the timestamp format. can anyone help me?

What I have tried:

I cant try it. I dont know where to start off.

解决方案

Quote:

I have purchased an API. I don't know how to work with it exactly.


Do you mean they don't help their paying customers ?
there is not much possibilities:
you can get help from other users preferably on a users forum.
You should get help from authors, if they don't help, ask your money back.

Avoid random forum not related to the product.


Also, in addition to their API support, read curl's man page...

curl - Manual[^]
curl - How To Use[^]


这篇关于如何在PHP脚本中使用LINUX格式的CURL请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆