PHP code example of kodventure / goooto-php-client

1. Go to this page and download the library: Download kodventure/goooto-php-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/ */

    

kodventure / goooto-php-client example snippets




use Kodventure\GoooTo\Client;

EY","GOOO.TO API SECRET");
$data = $client->shorten("https://github.com/Kodventure/goooto-php-client");

print_r($data);

/* output 
stdClass Object
(
    [data] => stdClass Object
        (
            [target] => https://github.com/Kodventure/goooto-php-client
            [user_id] => 1
            [domain] => gooo.to
            [title] => https://github.com/Kodventure/goooto-php-client
            [path] => 7GUsvz
            [updated_at] => 2020-11-27T14:51:04.000000Z
            [created_at] => 2020-11-27T14:51:04.000000Z
            [id] => 148
            [link] => https://gooo.to/7GUsvz
            [is_social] => 0
            [social] => 
        )
)
*/

composer