PHP code example of jcnventura / bufferphp

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

    

jcnventura / bufferphp example snippets


$data = array('profile_ids' => array());
$data['profile_ids'][] = 'PROFILE ID';
$data['profile_ids'][] = 'PROFILE ID';
$data['text'] = 'This is an example';
$data['media'] = array('link' => 'http://example.com/');

$data['media'] = array(
  'picture' => 'http://example.com/images/whiskers.png',
  'thumbnail' => 'http://example.com/images/whiskers_thumb.png',
);
$ret = $buffer->post('updates/create', $data);