https://github.com/rewardenv/reward-cloud-sdk-go
https://github.com/rewardenv/reward-cloud-sdk-go
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rewardenv/reward-cloud-sdk-go
- Owner: rewardenv
- License: mit
- Created: 2023-02-01T10:16:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T19:20:26.000Z (about 2 years ago)
- Last Synced: 2025-02-09T05:42:27.618Z (4 months ago)
- Language: Shell
- Size: 1.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# rewardcloud: A Go library for the Reward Cloud API
Package rewardcloud is a library for the Reward Cloud API.
The library’s documentation is available at [GoDoc](https://godoc.org/github.com/rewardenv/reward-cloud-sdk-go/rewardcloud).
## Example
```go
package mainimport (
"context"
"fmt"
"log""github.com/rewardenv/reward-cloud-sdk-go"
)func main() {
client := rewardcloud.NewClient(rewardcloud.WithToken("token"))project, _, err := client.Project.GetByID(context.Background(), 1)
if err != nil {
log.Fatalf("error retrieving project: %s\n", err)
}
if project != nil {
fmt.Printf("project 1 is called %q\n", project.Name)
} else {
fmt.Println("server 1 not found")
}
}
```## License
This work is licensed under the MIT license. See LICENSE file for details.