Skip to content

Claudiu/go-profitshare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
	}
}

Releases

No releases published

Packages

No packages published

Languages