Claudiu / go-profitshare

GoLang API for www.profitshare.ro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Currently Implemented:

  • Grabbing the list of Advertisers with Commissions
  • Grabbing current Campaigns with Banners
  • Grabbing Products with Advertiser ID filtering

Grabbing the list of advertisers

package main

import (
	"fmt"
	"github.com/claudiu/go-profitshare"
)

func main() {
	ps := profitshare.NewProfitShare(
		"api user",
		"api key",
	)

	advertisers, err := ps.GetAdvertisers1M()

  if err != nil {
    panic(err)
  }

	for _, advertiser := range advertisers {
		fmt.Println(advertiser.ID)
	}
}

About

GoLang API for www.profitshare.ro

License:MIT License


Languages

Language:Go 100.0%