1. Go to this page and download the library: Download talentcircles/php_sdk 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/ */
talentcircles / php_sdk example snippets
// Use your Network URL, App ID, and Api Key to connect to your API.
// It is reccomended that this information be kept somewhere in your
// project that is not accessible from the public html directory.
$network_url='https://127.0.1.1';
$app_id='romeo-5931c22e4190b';
$api_key='Y1IgDgriOjAo5hKMzZ0RxC';
$tc = new TalentCirclesSDK($network_url, $app_id, $api_key);
$user_id = 12770260;
$update_data = array(
'objective' => 'To improve my career a great deal.',
);
$obj_user = $tc->updateUser($user_id, $update_data);
$circle_id = 375;
$story_details = array(
'title' => 'A New Test Story',
'story' => 'This story is really, really new.'
);
$obj_story = $tc->postCircleStory($circle_id, $story_details);
$story_data = array(
'title' => 'A new test story ' . date("U"),
'story' => 'This test story is really new.',
'circle_id' => $circle_id
);
$obj_story = $tc->postStory($story_data);
$circle_ids = array(
375,
376
);
$story_data = array(
'title' => 'Multiple Circle Test Story',
'story' => 'This test story is being posted to two different circles.',
'circle_id' => $circle_ids
);
$ar_stories = $tc->postStory($story_data);
$story_id = 240;
$story_data = array(
'story' => 'The text of this story is being updated.',
);
$obj_story = $tc->updateStory($story_id, $story_data);
$story_ids = array(
240,
241
);
$story_data = array(
'story' => 'The text of this story is being updated.',
);
$obj_story = $tc->updateStory($story_ids, $story_data);
$ composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.