• Stars
    star
    175
  • Rank 218,059 (Top 5 %)
  • Language
    Ruby
  • Created about 8 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A ruby interface for the Mastodon API

Mastodon API Ruby Gem

Gem Version Build Status

A ruby interface for the Mastodon API.

Installation

gem 'mastodon-api', require: 'mastodon'

Documentation

All the documentation is available on RubyDoc.

Usage

Assuming that you already have an access token for a user on a given Mastodon instance:

require 'mastodon'

client = Mastodon::REST::Client.new(base_url: 'https://mastodon.social', bearer_token: 'your_access_token')

If you need to get an access token, you must first ensure that you have the client ID and client secret for your app on the given Mastodon instance (you should save those for future calls):

client.create_app('My Ruby App', 'http://mywebsite.com/callback')

You can then use the client ID and secret in a standard OAuth 2 authorization flow.

More Repositories

1

mastodon

Your self-hosted, globally interconnected microblogging community
Ruby
46,849
star
2

mastodon-ios

Official iOS app for Mastodon
Swift
2,040
star
3

documentation

Mastodon documentation
SCSS
1,702
star
4

mastodon-android

Official Android app for Mastodon
Java
1,674
star
5

joinmastodon

The official Mastodon project homepage
TypeScript
240
star
6

mastodon-ansible

Ansible playbook for installing Mastodon
Jinja
163
star
7

chart

Helm chart for Mastodon deployment in Kubernetes
Mustache
156
star
8

mastodon-native

Mobile Mastodon app using React Native
JavaScript
97
star
9

flodgatt

A blazingly fast drop-in replacement for the Mastodon streaming API server
Rust
87
star
10

mastodon-bridge

Moved to https://source.joinmastodon.org/mastodon/bridge
Ruby
62
star
11

blog

The official Mastodon blog
HTML
39
star
12

omniauth-mastodon

OmniAuth strategy for Mastodon
Ruby
34
star
13

goldfinger

A Webfinger utility for Ruby
Ruby
32
star
14

ostatus2

A Ruby toolset for interacting with the OStatus suite of protocols
Ruby
31
star
15

gamo

An image proxy and optimization server
Go
27
star
16

mastodon-vagrant-box

A Vagrant base box for Mastodon
Shell
19
star
17

webpush-fcm-relay

Relay encrypted WebPush notifications to Firebase Cloud Messaging.
Go
14
star
18

helm-charts

Smarty
10
star
19

packer

Build automation for DigitalOcean 1-click Install Image
Shell
9
star
20

terraform-fastly-service

Terraform module for more easily defining a Fastly service, following Mastodon common use cases.
VCL
6
star
21

terraform-hetzner-k8s-kubeone

Terraform module for deploying kubernetes clusters in Hetzner Cloud.
HCL
6
star
22

terraform-fastly-files-service

Terraform module for creating a fastly service for Mastodon's files backend
HCL
3
star
23

.github

Mastodon org-level files
3
star
24

fastly-globeviz-data

Backend server for Fastly Globeviz app (https://dev.to/fastly/visualize-your-fastly-traffic-on-a-real-time-globe-using-glitch-9di)
Go
3
star
25

terraform-fastly-joinmastodon

Terraform module for setting up fastly services that make up the joinmastodon.org domain
HCL
2
star
26

terraform-hetzner-ssh

Terraform module for managing SSH keys in Hetzner Cloud
HCL
1
star
27

terraform-ovh-k8s

Module to create a managed k8s cluster in OVH
HCL
1
star