pharo-mastodon

Description

a Pharo API for Mastodon

Details

Source
GitHub
Dialect
pharo (65% confidence)
License
MIT
Stars
9
Forks
4
Created
Dec. 4, 2017
Updated
Sept. 9, 2024
Topics
mastodon pharo

README excerpt

# 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: 'username@yourmail.net' 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: 'username@yourmail.net' password: 'shhh'.
"Posting a test status"
login postStatus: 'This is a test'.
```
← Back to results