1. Go to this page and download the library: Download ateliee/amebapost 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/ */
ateliee / amebapost example snippets
use Ameba\AmebaPost;
...
$ameba = new AmebaPost('user_id','password');
$themes = $ameba->getThemeIds();
// edit post
if($list = $ameba->getEntry()){
$id = key($list);
$theme_id = key($themes);
$ameba->updateEntry($id,'これはテストです','これはテストです。',$theme_id,AmebaPost::$PUBLISH,time(),0);
}
// new post
$theme_id = key($themes);
$ameba->insertEntry('テスト','これはテストです',$theme_id,AmebaPost::$PUBLISH,time(),0);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.