fdk-client-golang

module
v0.0.0-...-6270ec6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2023 License: MIT

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):
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):
platformConfig := platform.NewPlatformConfig("YOUR_COMPANY_ID", "API_KEY", "API_SECRET", "DOMAIN")

platformConfig.SetOAuthClient()
//Set token using OAuthClient

platformClient := platform.NewPlatformClient(platformConfig)
res, err := platformClient.Catalog.GetProducts(platform.PlatformGetProductsXQuery{})
if err != nil {
	log.Println(err)
	return
}

Documentation

Directories

Path Synopsis
sdk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL