A GNU Social-compatible microblogging server https://mastodon.social PHP API
Switch branches/tags
Nothing to show
Clone or download
Latest commit f6bbb19 Jun 24, 2017
Permalink
Failed to load latest commit information.
LICENSE Initial commit Apr 16, 2017
Mastodon_api.php Issues #1 commit Jun 24, 2017
README.md Add How to use and Test Mastodon Apr 16, 2017

README.md

Mastodon-api-php

A GNU Social-compatible microblogging server https://mastodon.social PHP API

How to use

require_once '/path/Mastodon_api.php';

$mastodon_api = new Mastodon_api();
$mastodon_api->set_url('Mastodon url');

// print_r($mastodon_api->create_app('APP Name',null,null,'Mastodon url'));
$mastodon_api->set_client('client_id','client_secret');

// print_r($mastodon_api->login('your login email','your login password'));
$mastodon_api->set_token('access_token','token_type');

$mastodon_api->timelines_home();

Test Mastodon

https://ery.kr