{"id":23047402,"url":"https://github.com/moceanapi/mocean-sdk-go","last_synced_at":"2025-04-03T02:45:09.613Z","repository":{"id":54142234,"uuid":"161277076","full_name":"MoceanAPI/mocean-sdk-go","owner":"MoceanAPI","description":"✉📲 SDK Library Go lang to send SMS for FREE using MoceanAPI sms solution.","archived":false,"fork":false,"pushed_at":"2021-03-08T09:06:44.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T17:09:44.609Z","etag":null,"topics":["moceanapi","sms","sms-api","sms-client","sms-messages"],"latest_commit_sha":null,"homepage":"https://moceanapi.com/","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/MoceanAPI.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-12-11T04:27:40.000Z","updated_at":"2021-03-08T08:58:47.000Z","dependencies_parsed_at":"2022-08-13T07:30:53.303Z","dependency_job_id":null,"html_url":"https://github.com/MoceanAPI/mocean-sdk-go","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoceanAPI","download_url":"https://codeload.github.com/MoceanAPI/mocean-sdk-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927807,"owners_count":20856193,"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":["moceanapi","sms","sms-api","sms-client","sms-messages"],"created_at":"2024-12-15T22:33:28.897Z","updated_at":"2025-04-03T02:45:09.595Z","avatar_url":"https://github.com/MoceanAPI.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"MoceanAPI Client Library for [Go](https://golang.org/) \n============================\n\nThis is the [Go](https://golang.org/) library for use Mocean's API. To use this, you'll need a Mocean account. Sign up [for free at \nmoceanapi.com][signup].\n\n * [Installation](#installation)\n * [Usage](#usage)\n * [Example](#example)\n\n## Installation\n\nTo install the client\n\n```bash\ngo get \"gopkg.in/MoceanAPI/mocean-sdk-go.v2\"\n```\n\n## Usage\n\nCreate a client with your API key and secret\n\n```go\nimport \"gopkg.in/MoceanAPI/mocean-sdk-go.v2\"\n\nmocean := moceansdk.NewMoceanClient(\"apiKey\", \"apiSecret\")\n```\n\n## Available API\n```go\nmocean.Message().Send()             //Send SMS\nmocean.Message().GetMessageStatus() //Get Message Status\nmocean.Account().GetBalance()       //Get Account Balance\nmocean.Account().GetPricing()       //Get Account Pricing\nmocean.Verify().SendCode()          //Send Verify Code\nmocean.Verify().VerifyCode()        //Check Verify Code\nmocean.NumberLookup().Inquiry()     //Number Lookup\nmocean.Voice().Call()               //Voice Call\n```\n\n## Example\n\nTo use [Mocean's SMS API][doc_sms] to send an SMS message, call the `mocean.Message.Send()` method.\n\nThe API can be called directly, using a simple array of parameters, the keys match the [parameters of the API][doc_sms].\n\n```go\nres, err := mocean.Message().Send(url.Values{\n    \"mocean-to\": {\"60123456789\"},\n    \"mocean-from\": {\"MOCEAN\"},\n    \"mocean-text\": {\"Hello World\"}\n})\n\nif err != nil {\n    fmt.Println(err)\n} else {\n    fmt.Printf(\"res: %v\", res)\n}\n```\n\n## Responses\n\nFor your convenient, the API response has been parsed to specific struct\n\n```go\nfmt.Printf(\"res: %v\", res)        // show full response string\nfmt.Printf(\"res: %v\", res.Status) // show response status, \"0\" in this case\n```\n\n## Documentation\n\nKindly visit [MoceanApi Docs][doc_main] for more usage\n\n## License\n\nThis library is released under the [MIT License][license]\n\n[signup]: https://dashboard.moceanapi.com/register?medium=github\u0026campaign=sdk-go\n[doc_main]: https://moceanapi.com/docs/?go\n[doc_sms]: https://moceanapi.com/docs/?go#send-sms\n[license]: LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoceanapi%2Fmocean-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoceanapi%2Fmocean-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoceanapi%2Fmocean-sdk-go/lists"}