1
0
Fork 0
mirror of synced 2024-07-13 10:26:15 +12:00
appwrite/app/sdks/server-go/docs/examples/avatars/get-browser.md

25 lines
468 B
Markdown
Raw Normal View History

2020-01-29 03:22:13 +13:00
package main
import (
"fmt"
"github.com/appwrite/sdk-for-go"
)
func main() {
var client := appwrite.Client{}
2020-02-16 07:22:34 +13:00
client.SetProject("5df5acd0d48c2") // Your project ID
client.SetKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
2020-01-29 03:22:13 +13:00
2020-01-29 05:42:11 +13:00
var service := appwrite.Avatars{
2020-01-29 03:22:13 +13:00
client: &client
}
2020-01-29 10:01:07 +13:00
var response, error := service.GetBrowser("aa", 0, 0, 0)
2020-01-29 05:42:11 +13:00
if error != nil {
panic(error)
2020-01-29 03:22:13 +13:00
}
2020-01-29 05:42:11 +13:00
fmt.Println(response)
2020-01-29 03:22:13 +13:00
}