{"id":41746875,"url":"https://github.com/interaapps/pastefy-go-api","last_synced_at":"2026-01-25T01:04:04.013Z","repository":{"id":57650998,"uuid":"448638277","full_name":"interaapps/pastefy-go-api","owner":"interaapps","description":"A Go Client for pastefy","archived":false,"fork":false,"pushed_at":"2022-01-16T19:36:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T17:36:03.664Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/interaapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-16T18:26:23.000Z","updated_at":"2022-01-25T17:57:03.000Z","dependencies_parsed_at":"2022-09-26T20:22:14.399Z","dependency_job_id":null,"html_url":"https://github.com/interaapps/pastefy-go-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/interaapps/pastefy-go-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interaapps%2Fpastefy-go-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interaapps%2Fpastefy-go-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interaapps%2Fpastefy-go-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interaapps%2Fpastefy-go-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interaapps","download_url":"https://codeload.github.com/interaapps/pastefy-go-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interaapps%2Fpastefy-go-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28740411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-25T01:04:03.943Z","updated_at":"2026-01-25T01:04:03.996Z","avatar_url":"https://github.com/interaapps.png","language":"Go","readme":"# Pastefy Go API Client\n\n```go\npackage main\n\nimport pastefy \"github.com/interaapps/pastefy-go-api\"\n\nfunc main() {\n\n\tclient := pastefy.NewClient()\n\n\t// Not required for just fetching pastes or folders\n\tclient.SetApiToken(\"...\")\n\n\tcreatePaste := pastefy.Paste{\n\t\tTitle:     \"test.js\",\n\t\tContent:   `console.log(\"Hey\");`,\n\t}\n\tcreatedPaste, _ := client.CreatePaste(createPaste)\n\tprintln(createdPaste.RawUrl)\n\t\n\tpaste, _ := client.GetPaste(\"ZA8U8CCQ\")\n\tprintln(paste.Content)\n\tpaste.Content += `\\nconsole.log(\"There!\")`\n\tclient.SavePaste(paste)\n\t\n\t// Getting folder\n\tfolder, _ := client.GetFolder(\"abcdefgh\")\n\tfor _, folderPaste := range folder.Pastes {\n\t\tprintln(folderPaste.Title)\n\t}\n\n\n\t// Getting current logged in user\n\tuser, _ := client.GetUser()\n\tif user.LoggedIn {\n\t\tprintln(\"Hello: \" + user.Name)\n\t}\n\t\n\t\n\t// Edit encrypted pastes\n\tpassword := \"password\"\n\tpaste, _ = paste.Decrypt(password)\n\tpaste.Content = \"Hey\"\n\tpaste, _ = paste.Encrypt(password)\n\t_, err := client.SavePaste(paste) // (edited paste, error)\n\tif err == nil {\n\t\tprintln(\"Successful!\")\n    }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteraapps%2Fpastefy-go-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finteraapps%2Fpastefy-go-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteraapps%2Fpastefy-go-api/lists"}