https://github.com/gofynd/fdk-client-golang
Fynd Development Kit(FDK) for Golang
https://github.com/gofynd/fdk-client-golang
fdk golang
Last synced: 2 months ago
JSON representation
Fynd Development Kit(FDK) for Golang
- Host: GitHub
- URL: https://github.com/gofynd/fdk-client-golang
- Owner: gofynd
- License: mit
- Created: 2021-02-26T04:32:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-26T13:14:04.000Z (over 1 year ago)
- Last Synced: 2025-03-13T04:02:29.307Z (2 months ago)
- Topics: fdk, golang
- Language: Go
- Homepage:
- Size: 34.4 MB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FDK Golang
FDK client for Golang
## Getting Started
Get started with the Golang Development SDK for Fynd Platform
### Usage
```
import "https://github.com/gofynd/fdk-client-golang/"
```### Sample Usage (ApplicationClient):
```golang
config, err := application.NewAppConfig("YOUR_APPLICATION_ID", "YOUR_APPLICATION_TOKEN", "DOMAIN", &application.Options{})
if err != nil {
log.Println(err)
return
}
client := application.NewAppClient(config);
res, err := client.Content.GetLandingPage()
if err != nil {
log.Println(err)
return
}```
### Sample Usage (PlatformClient):
```golang
platformConfig := platform.NewPlatformConfig("YOUR_COMPANY_ID", "API_KEY", "API_SECRET", "DOMAIN")platformConfig.SetOAuthClient()
//Set token using OAuthClientplatformClient := platform.NewPlatformClient(platformConfig)
res, err := platformClient.Catalog.GetProducts(platform.PlatformGetProductsXQuery{})
if err != nil {
log.Println(err)
return
}```
### Documentation
- [Application Front](documentation/APPLICATION.md)
- [Platform](documentation/PLATFORM.md)