halcyon-webclient/authorize/Mastodon-api-php
nipos 6afd23142e Very small optimizations and first upload 2018-02-26 17:56:23 +01:00
..
LICENSE Very small optimizations and first upload 2018-02-26 17:56:23 +01:00
Mastodon_api.php Very small optimizations and first upload 2018-02-26 17:56:23 +01:00
README.md Very small optimizations and first upload 2018-02-26 17:56:23 +01:00

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