Skip to content

Commit

Permalink
Added new field to campaign model
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed May 2, 2022
1 parent 19b3041 commit beac234
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func ExampleNewClient() {
return
}
fmt.Printf("loaded client: %s", client.Options().userAgent)
// Output:loaded client: go-tonicpow: v0.7.2
// Output:loaded client: go-tonicpow: v0.7.3
}

// BenchmarkNewClient benchmarks the method NewClient()
Expand Down
2 changes: 1 addition & 1 deletion definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
defaultHTTPTimeout = 10 * time.Second // Default timeout for all GET requests in seconds
defaultRetryCount int = 2 // Default retry count for HTTP requests
defaultUserAgent = "go-tonicpow: " + version // Default user agent
version string = "v0.7.2" // go-tonicpow version
version string = "v0.7.3" // go-tonicpow version

// Field key names for various model requests
fieldAdvertiserProfileID = "advertiser_profile_id"
Expand Down
3 changes: 2 additions & 1 deletion models.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ type Campaign struct {
Goals []*Goal `json:"goals"`
Images []*CampaignImage `json:"images"`
CreatedAt string `json:"created_at"`
LastEventAt string `json:"last_event_at"`
Currency string `json:"currency"`
Description string `json:"description"`
ExpiresAt string `json:"expires_at"`
FundingAddress string `json:"funding_address"`
FundingPaymailAddress string `json:"funding_paymail_address"`
ImageURL string `json:"image_url"`
LastEventAt string `json:"last_event_at"`
PublicGUID string `json:"public_guid"`
Slug string `json:"slug"`
TargetURL string `json:"target_url"`
Expand Down
4 changes: 2 additions & 2 deletions tonicpow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestVersion(t *testing.T) {
// See more examples in /examples/
func ExampleVersion() {
fmt.Printf("version: %s", Version())
// Output:version: v0.7.2
// Output:version: v0.7.3
}

// TestUserAgent will test the method UserAgent()
Expand All @@ -60,7 +60,7 @@ func TestUserAgent(t *testing.T) {
// See more examples in /examples/
func ExampleUserAgent() {
fmt.Printf("user agent: %s", UserAgent())
// Output:user agent: go-tonicpow: v0.7.2
// Output:user agent: go-tonicpow: v0.7.3
}

// TestGetFeedType will test the method GetFeedType()
Expand Down

0 comments on commit beac234

Please sign in to comment.