Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/estebanlm/pharo-mastodon
- Owner: estebanlm
- License: mit
- Created: 2017-12-04T19:55:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T07:31:57.000Z (almost 7 years ago)
- Last Synced: 2024-04-13T12:57:35.900Z (8 months 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: '[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'.
```