Skip to content

Commit

Permalink
Removed link reqs from lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jun 3, 2021
1 parent 2c9b365 commit bb6c34e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 204 deletions.
37 changes: 1 addition & 36 deletions definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type APIEnvironment string
const (

// defaultUserAgent is the default user agent for all requests
defaultUserAgent string = "go-tonicpow: v0.5.2"
defaultUserAgent string = "go-tonicpow: v0.5.3"

// Field key names for various model requests
fieldAdvertiserProfileID = "advertiser_profile_id"
Expand All @@ -30,7 +30,6 @@ const (
fieldReason = "reason"
fieldResultsPerPage = "results_per_page"
fieldSearchQuery = "query"
fieldShortCode = "short_code"
fieldSlug = "slug"
fieldSortBy = "sort_by"
fieldSortOrder = "sort_order"
Expand All @@ -44,7 +43,6 @@ const (
modelCampaign = "campaigns"
modelConversion = "conversions"
modelGoal = "goals"
modelLink = "links"
modelRates = "rates"
modelUser = "users"

Expand Down Expand Up @@ -291,39 +289,6 @@ type Goal struct {
Title string `json:"title"`
}

// Link is the link model (child of User) (relates Campaign to User)
// Use the CustomShortCode on create for using your own short code
//
// For more information: https://docs.tonicpow.com/#ee74c3ce-b4df-4d57-abf2-ccf3a80e4e1e
type Link struct {
AvatarURL string `json:"avatar_url,omitempty"`
CampaignID uint64 `json:"campaign_id"`
CampaignImageURL string `json:"image_url"`
CampaignSlug string `json:"slug"`
CampaignTitle string `json:"title"`
ClickSatoshis int32 `json:"click_satoshis"`
ConversionSatoshis int32 `json:"conversion_satoshis"`
Country string `json:"country"`
CustomShortCode string `json:"custom_short_code"`
ID uint64 `json:"id,omitempty"`
Label string `json:"label"`
ShortCode string `json:"short_code"`
ShortLinkURL string `json:"short_link_url"`
TargetURL string `json:"target_url"`
TotalClicks int32 `json:"total_clicks"`
TotalConversions int32 `json:"total_conversions"`
UserID uint64 `json:"user_id"`
Username string `json:"username,omitempty"`
}

// LinkResults is the page response for link results from listing
type LinkResults struct {
CurrentPage int `json:"current_page"`
Links []*Link `json:"links"`
Results int `json:"results"`
ResultsPerPage int `json:"results_per_page"`
}

// Rate is the rate results
//
// For more information: https://docs.tonicpow.com/#fb00736e-61b9-4ec9-acaf-e3f9bb046c89
Expand Down
168 changes: 0 additions & 168 deletions links.go

This file was deleted.

0 comments on commit bb6c34e

Please sign in to comment.