Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/estebanlm/pharo-mastodon

a Pharo API for Mastodon
https://github.com/estebanlm/pharo-mastodon

mastodon pharo

Last synced: about 2 months ago
JSON representation

a Pharo API for Mastodon

Awesome Lists containing this project

README

        

# pharo-mastodon

a [Pharo](http://pharo.org) API for [mastodon](http://joinmastodon.org)

## Installation
- You need Pharo 7.0

```Smalltalk
Metacello new
repository: 'github://estebanlm/pharo-mastodon/src';
baseline: 'Mastodon';
load.
```

## Examples

### Reading your timeline.

```Smalltalk
"Create a server"
server := MdnServer url: 'https://mastodon.social'.
"Login"
login := server loginUsername: '[email protected]' password: 'shhh'.
"Read timeline 'home'"
login timelineHome next.
```

### Posting a status

```Smalltalk
"Create a server"
server := MdnServer url: 'https://mastodon.social'.
"Login"
login := server loginUsername: '[email protected]' password: 'shhh'.
"Posting a test status"
login postStatus: 'This is a test'.
```