Skip to content

atomx/atomx-api-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atomx-api-go

GoDoc

atomx-api-go is a Go client for the Atomx API

Example

List all your creatives:

client := atomx.New()

if err := client.Login("email", "password"); err != nil {
	panic(err)
}

offset := int64(0)

for {
	creatives := atomx.CreativesList{
		List: atomx.List{
			Sort:   "id.asc",
			Offset: offset,
			Limit:  100,
		},
	}

	if err := client.List(&creatives, &atomx.Options{
		Extra: []string{"quickstats.yesterday.impressions>=100", "id>=1"},
	}); err != nil {
		return nil, err
	}
	
	if len(creatives.Creatives) == 0 {
		break
	}

	for _, creative := range creatives.Creatives {
		println(creative)
	}

	offset += creatives.Limit
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages