PHP code example of weebly / weebly_client

1. Go to this page and download the library: Download weebly/weebly_client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

weebly / weebly_client example snippets


$client = new \Weebly\WeeblyClient($client_id, $client_secret, $user_id, $site_id, $access_token);

$endpoint = '/user/sites/' . $site_id;
$response = $client->get($endpoint);

$endpoint = '/user/sites/' . $site_id . '/store/orders/' . $order_id . '/shipments/' . $order_shipment_id;
$product = ['tracking_number' => '1234567810abcde']; //Modifying the tracking_number on an unshipped product will mark it as shipped as well!
$response = $client->put($endpoint, $product);