{"id":22337196,"url":"https://github.com/manglaneso/mastodonapi","last_synced_at":"2026-02-18T10:32:13.103Z","repository":{"id":185225977,"uuid":"663730275","full_name":"manglaneso/MastodonAPI","owner":"manglaneso","description":"Mastodon API integration for Google Apps Script","archived":false,"fork":false,"pushed_at":"2024-11-23T16:27:53.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T18:13:25.433Z","etag":null,"topics":["google-apps-script","javascript","mastodon","mastodon-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manglaneso.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-08T01:08:58.000Z","updated_at":"2025-04-24T19:59:23.000Z","dependencies_parsed_at":"2024-11-23T17:21:45.971Z","dependency_job_id":"6eff06d5-aedb-4efd-b4c9-b280c46d684c","html_url":"https://github.com/manglaneso/MastodonAPI","commit_stats":null,"previous_names":["manglaneso/mastodonapi"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/manglaneso/MastodonAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manglaneso%2FMastodonAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manglaneso%2FMastodonAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manglaneso%2FMastodonAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manglaneso%2FMastodonAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manglaneso","download_url":"https://codeload.github.com/manglaneso/MastodonAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manglaneso%2FMastodonAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-apps-script","javascript","mastodon","mastodon-api"],"created_at":"2024-12-04T06:09:10.021Z","updated_at":"2026-02-18T10:32:08.092Z","avatar_url":"https://github.com/manglaneso.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MastodonAPI\nMastodon API integration for Google Apps Script\n\n\n### Inspiration\n\nInspiration for this comes from Bradley Momberger's [Twitterlib](https://github.com/airhadoken/twitter-lib) which unfortunately stopped working since Twitter (or X I guess) decided to shut down the v1 Twitter API for non-Enterprise developers, and since I wanter to give Mastodon a try, I wanted some Twitter bots I implemented to live on somewhere else.\n\n### Use\n\nClick the + after Libraries, paste in v1jS989gPrhRRehNc6tBvMDF8XPzKAIHeiVLpmOf_V5mZ-JgYLQA6XeRg9 (the project key for this script), and add in MastodonAPI and select its latest version.\n\nCreate a Mastodon API access token in your favourite Mastodon instance and create a MastodonAPI object passing the url of your instance and the access token.\n\n```javascript\nlet masto = MastodonAPI.init(mastodonBaseUrl, accessToken);\n```\n\nAfter that, with the created MastodonAPI object you can start using the different methods:\n\n```javascript\n// Start uploading media to Mastodon\nlet uploadMediaInit = masto.uploadMedia(videoBlob);\n// Get the status of the media upload\nlet getMedia = masto.getMedia(uploadMediaInit.id);\n// Publish an status post with the uploaded media attached\nlet response = masto.publishStatus(null, uploadMediaInit.id)\n```\n\n### Example of use\n\nYou can find an example of use in the [following repo](https://github.com/manglaneso/oraleputosbot/blob/main/src/MastodonTriggerService.js).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanglaneso%2Fmastodonapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanglaneso%2Fmastodonapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanglaneso%2Fmastodonapi/lists"}