Documentation ¶
Index ¶
- Constants
- type BaseRequest
- func (r BaseRequest) GetBaseUrl() string
- func (r BaseRequest) GetContentType() string
- func (r BaseRequest) GetOwnerID() uint64
- func (r BaseRequest) GetVersion() string
- func (r BaseRequest) ResourceAction() string
- func (r BaseRequest) ResourceName() string
- func (r *BaseRequest) SetBaseUrl(baseUrl string)
- func (r *BaseRequest) SetContentType(contentType string)
- func (r *BaseRequest) SetOwnerID(ownerID uint64)
- func (r *BaseRequest) SetResourceAction(resourceAction string)
- func (r *BaseRequest) SetResourceName(resourceName string)
- func (r *BaseRequest) SetVersion(ver string)
- type BaseResponse
- type Request
- type Response
Constants ¶
View Source
const ( BASE_URL = "https://sapi.ads.heytapmobi.com" DEFAULT_VERSION = "v1" DEFAULT_CONTENT_TYPE = "application/json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRequest ¶
type BaseRequest struct { OwnerID uint64 `json:"ownerId,omitempty"` // contains filtered or unexported fields }
func (BaseRequest) GetBaseUrl ¶
func (r BaseRequest) GetBaseUrl() string
func (BaseRequest) GetContentType ¶
func (r BaseRequest) GetContentType() string
func (BaseRequest) GetOwnerID ¶
func (r BaseRequest) GetOwnerID() uint64
func (BaseRequest) GetVersion ¶
func (r BaseRequest) GetVersion() string
func (BaseRequest) ResourceAction ¶
func (r BaseRequest) ResourceAction() string
func (BaseRequest) ResourceName ¶
func (r BaseRequest) ResourceName() string
func (*BaseRequest) SetBaseUrl ¶
func (r *BaseRequest) SetBaseUrl(baseUrl string)
func (*BaseRequest) SetContentType ¶
func (r *BaseRequest) SetContentType(contentType string)
func (*BaseRequest) SetOwnerID ¶
func (r *BaseRequest) SetOwnerID(ownerID uint64)
func (*BaseRequest) SetResourceAction ¶
func (r *BaseRequest) SetResourceAction(resourceAction string)
func (*BaseRequest) SetResourceName ¶
func (r *BaseRequest) SetResourceName(resourceName string)
func (*BaseRequest) SetVersion ¶
func (r *BaseRequest) SetVersion(ver string)
type BaseResponse ¶
func (BaseResponse) Error ¶
func (r BaseResponse) Error() string
func (BaseResponse) IsError ¶
func (r BaseResponse) IsError() bool
Click to show internal directories.
Click to hide internal directories.