{"id":24433857,"url":"https://github.com/hako/casper","last_synced_at":"2025-08-23T23:11:44.830Z","repository":{"id":144208517,"uuid":"43979898","full_name":"hako/casper","owner":"hako","description":"A Go library for interacting with the Casper \u0026 Snapchat API","archived":false,"fork":false,"pushed_at":"2016-07-02T16:30:58.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T16:53:46.397Z","etag":null,"topics":["casper","go","golang","snapchat","snapchat-api"],"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/hako.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-09T20:59:46.000Z","updated_at":"2023-06-24T06:17:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd6e1633-1143-4f1e-a752-966d10e3b292","html_url":"https://github.com/hako/casper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hako%2Fcasper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hako%2Fcasper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hako%2Fcasper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hako%2Fcasper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hako","download_url":"https://codeload.github.com/hako/casper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243483765,"owners_count":20298042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["casper","go","golang","snapchat","snapchat-api"],"created_at":"2025-01-20T16:51:01.207Z","updated_at":"2025-03-13T21:25:16.097Z","avatar_url":"https://github.com/hako.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casper\n[![Build Status](https://img.shields.io/travis/hako/casper/master.svg?style=flat-square)](https://travis-ci.org/hako/casper)\n [![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://travis-ci.org/hako/casper)\n[![GoDoc](https://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/hako/casper)\n![CasperStatus](https://www.mgp25.com/cstatus/status.svg)\n\ncasper is a small Go library for interacting with the Casper API and the Snapchat API.\n\n# Installation\n`go get github.com/hako/casper`\n\n## Usage\n\nYou would need to register an account on the [Casper API portal](http://developers.casper.io/register.php) in order to use this library. Register an account and comeback to the README.\n\n_Don't worry, I won't disappear in 10 seconds :P_\n\nOnce you've registered an account and installed the library, to get started simply create a `Casper{}` struct and enter the following:\n\n+ `APIKey` - your Casper API key.\n\n+ `APISecret` - your Casper API secret.\n\n+ `Username` - your Snapchat username.\n\n+ `Password` - your Snapchat password.\n\n`Debug` is optional and is set to `false` by default.\n\n`ProjectName` is optional and is empty by default.\n\n`AuthToken` is optional but is required for accessing authenticated endpoints.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"github.com/hako/casper\"\n\t\"fmt\"\n)\n\nfunc main() {\t\n\tcasperClient := \u0026casper.Casper{\n        APIKey:    \"yourapikey\",\n        APISecret: \"yourapisecret\",\n\t}\n\tdata, err := casperClient.Login(\"yoursnapchatusername\", \"yoursnapchatpassword\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\tfmt.Println(data) // JSON\n}\n```\n\nOr if you already have an auth token...\n\n```go\npackage main\n\nimport (\n\t\"github.com/hako/casper\"\n\t\"fmt\"\n)\n\nfunc main() {\t\n\tcasperClient := \u0026casper.Casper{\n        APIKey:    \"yourapikey\",\n        APISecret: \"yourapisecret\",\n        Username:  \"yoursnapchatusername\",\n        AuthToken: \"yoursnapchatauthtoken\",\n\t}\n\tdata, err := casperClient.Updates()\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\tfmt.Println(data) // JSON\n}\n```\n\nSee the [godoc](https://godoc.org/github.com/hako/casper) for more functions for interacting with the API.\n## Todo\n- [ ] More tests.\n- [ ] Code cleanup.\n\t- [ ] DRY cleanup.\n\n## Security\n\nThis library requires you to have a Snapchat account.\n\nBy using this library you also agree to the [Casper Terms of Use](http://clients.casper.io/terms.php).\n\n## Kudos\n+ [liamcottle](http://github.com/liamcottle) - For providing the Casper API service.\n+ [Snapchat](http://snapchat.com) - For just being Snapchat.\n\n## Author\nWesley Hill - ([@hako](\"github.com/hako\")/[@hakobyte](\"twitter.com/hakobyte\"))\n\n## License\nMIT\n\n## Legal\nBefore using this library, take a look at the [Casper Terms of Use](http://clients.casper.io/terms.php)\n\nUse at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhako%2Fcasper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhako%2Fcasper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhako%2Fcasper/lists"}