Skip to content

pirsquare/semantics3-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Semantics3 api client in golang.

Example

package main

import (
    "fmt"
    "log"
    "io/ioutil"
    "github.com/pirsquare/semantics3-go"
)

func main() {
    client := semantics3.NewClient("XXXXXXXX", "XXXXXXXX", "products")
    client.AddParams(map[string]interface{}{"upc": uint64(636926047593)})

    response, err := client.Get()
    if err != nil{
        log.Fatalln(err)
    }

    defer response.Body.Close()

    bits, err := ioutil.ReadAll(response.Body)
    if err != nil{
        log.Fatalln(err)
    }

    fmt.Println(string(bits))

}

About

Semantics3 api client in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages