// Get function to get specific campaign by id
Get function to get specific campaign by id
// Get function to get specific campaign by id
func (s *CampaignService) Get(ctx context.Context, id int64) (*Campaign, *Response, error) {
	u := fmt.Sprintf("campaigns/%d", id)
	req, err := s.client.NewRequest("GET", u, nil)
	if err != nil {
		return nil, nil, err
	}
	campaign := new(Campaign)
	resp, err := s.client.Do(ctx, req, campaign)
	if err != nil {
		return nil, resp, err
	}
	return campaign, resp, nil
}
func ( s * CampaignService ) Get ( ctx context . Context , id int64 ) ( * Campaign , * Response , error ) { u := fmt . Sprintf ( " " , id ) req , err := s . client . NewRequest ( " " , u , nil ) if err != nil { return nil , nil , err } campaign := new ( Campaign ) resp , err := s . client . Do ( ctx , req , campaign ) if err != nil { return nil , resp , err } return campaign , resp , nil }
Get function to get specific campaign by id
Get function to get specific campaign by id