{"id":15321814,"url":"https://github.com/codehakase/mobius-go","last_synced_at":"2025-10-09T08:31:48.812Z","repository":{"id":57599491,"uuid":"127924346","full_name":"codehakase/mobius-go","owner":"codehakase","description":"(Deprecated) The Mobius Go (Golang) Client provides simple access to the Mobius API for applications written in Go","archived":true,"fork":false,"pushed_at":"2018-04-03T20:03:34.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T05:34:11.460Z","etag":null,"topics":["api","go","golang","mobius","sdk"],"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/codehakase.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":"2018-04-03T14:52:13.000Z","updated_at":"2023-01-28T20:17:55.000Z","dependencies_parsed_at":"2022-09-12T15:12:31.825Z","dependency_job_id":null,"html_url":"https://github.com/codehakase/mobius-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codehakase/mobius-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fmobius-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fmobius-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fmobius-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fmobius-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codehakase","download_url":"https://codeload.github.com/codehakase/mobius-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codehakase%2Fmobius-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001064,"owners_count":26082991,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","go","golang","mobius","sdk"],"created_at":"2024-10-01T09:13:12.817Z","updated_at":"2025-10-09T08:31:48.533Z","avatar_url":"https://github.com/codehakase.png","language":"Go","readme":"\n# Mobius Go API Client\n[![GoDoc](https://godoc.org/gopkg.in/mailgun/mailgun-go.v1?status.svg)](https://godoc.org/gopkg.in/mailgun/mailgun-go.v1)\n\nThe Mobius Go (Golang) Client provides simple access to the Mobius API for applications written in Go\n\n## Installation\nInstall with `go get`\n```shell\n$ go get github.com/codehakase/mobius-go\n```\n\n## QuickStart\nTo use the library, you'd need to create a client, with your Mobius `appuid` and `apikey`.\n\n```go\npackage main\n\nimport (\n  \"github.com/codehakase/mobius-go\"\n  \"fmt\"\n)\n\nfunc main() {\n  mc := mobius.New(yourApiKey, yourAppUID)\n\n  // Retrive a struct to communicate with the DApp store\n  appStore := mc.AppStore\n\n  // Get a user's balance\n  usrBal, err := appStore.Balance(\"myemail@example.com\")\n  if err != nil {\n    log.Fatalf(\"can't fetch user's balance, err: %+v\", err)\n    return\n  }\n  fmt.Println(\"User got %d mobi credits available\", usrBal.NumCredits)\n\n  // Credit user with mobi credits\n  if fundUser, err := appStore.Credit(\"user@example.com\", 1000); err != nil {\n    log.Fatalf(\"could not fund user, err: %+v\", err)\n    return\n  }\n  // Use 20 Mobi Credits from user@example.com\n  if charge, err := appStore.Use(\"user@example.com\", 20); err == nil {\n    if charge.Success {\n      fmt.Printf(\"User has been charged, and is left with %d mobi credits\", charge.NumCredits)\n    }\n  } else {\n    log.Fatalf(\"could not charge user, err: %+v\", err)\n  }\n}\n```\n\n## Methods\n\n\n- ##### `mobius.AppStore.Balance( email )`\n  Get balance of credits for email.\n\n- ##### `mobius.AppStore.Use( email, numCredits )`\n  Use numCredits from user with email.\n\n- ##### `mobius.Tokens.Register( tokenType, name, symbol, address )`\n  Register a token.\n\n- ##### `mobius.Tokens.Balance( tokenUid, address )`\n  Query the number of tokens specified by the token.\n\n- ##### `mobius.Tokens.CreateAddress( tokenUid, managed )`\n  Create an address for the token.\n\n- ##### `mobius.Tokens.RegisterAddress( tokenUid, address )`\n  Register an address for the token.\n\n- ##### `mobius.Tokens.TransferInfo( tokenAddressTransferUid )`\n  Get the status and transaction hash of a Mobius managed token transfer.\n\nOther methods can be found in the API reference\n\n\n## API Reference\nhttps://godoc.org/github.com/codehakase/mobius-go\nMobius API Docs - https://mobius.network/docs/\n\n## TODOs\n- Integration Testing\n- CLI Tool\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehakase%2Fmobius-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodehakase%2Fmobius-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodehakase%2Fmobius-go/lists"}