PHP code example of tekton / services

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

    

tekton / services example snippets


$config = [
    'key' => 'aslkmdalsdnasdnasdnkdnkjasndas',
    'channel' => 'ASDMALSmlk-ASDASDASDsasd',
    'url' => 'https://www.youtube.com/user/me',
    'refresh' => 60 * 2,
    'related' => false,
    'cookie' => false,
];

$youtube = new \Tekton\Services\Youtube($config, app('cache'));

$config = [
    'token' => '123123123.1239hd99dh98h9dj192jd1928',
    'user' => 'anotheruser',
    'url' => 'https://www.instagram.com/anotheruser',
    'refresh' => 60 * 2,
];

$instagram = new \Tekton\Services\Instagram($config, app('cache'));