https://github.com/estebanlm/pharo-mastodon
a Pharo API for Mastodon
https://github.com/estebanlm/pharo-mastodon
mastodon pharo
Last synced: over 1 year ago
JSON representation
a Pharo API for Mastodon
- Host: GitHub
- URL: https://github.com/estebanlm/pharo-mastodon
- Owner: estebanlm
- License: mit
- Created: 2017-12-04T19:55:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T07:31:57.000Z (over 8 years ago)
- Last Synced: 2024-04-13T12:57:35.900Z (about 2 years ago)
- Topics: mastodon, pharo
- Language: Smalltalk
- Homepage:
- Size: 33.2 KB
- Stars: 7
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: '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'.
```