2017-11-13 9 views
0

あなたはHTTPリクエストを構築する必要がbookeo apiからすべての予約リストを取得するには?

https://www.bookeo.com/apiref/index.html#!/Bookings/bookings_get

+0

..私はbookeo予約APIに新しいですし、私はPHPを使用して予約リストを取得することができますどのように理解していません。 PHPでは、これはcURLなどの任意のHTTPクライアントライブラリを使用して行うことができます – ADyson

答えて

0
1.The simplest way to launch a request is use the function: file_get_contents. But it only works for GET method. 

2.Otherwise,you can use the curl library which is very powerful. 

``` 
    $ch = curl_init(); 
    curl_setopt($ch, CURLOPT_URL, "API URL"); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt($ch, CURLOPT_HEADER, 0); 
    $output = curl_exec($ch); 
    curl_close($ch); 
    print_r($output); 
``` 

The more detail usage you can google it. 
関連する問題