Documentation
¶
Index ¶
- func TestCreatePhoto(t *testing.T)
- func TestGetPhoto(t *testing.T)
- func TestGetPhotoUploadURL(t *testing.T)
- func TestListPhotosForJob(t *testing.T)
- type APIError
- type Client
- func (c *Client) CancelJob(id int) (*Job, error)
- func (c *Client) CreateJob(params JobParams) (*Job, error)
- func (c *Client) CreatePhoto(params PhotoParams) (*Photo, error)
- func (c *Client) CreateProfile(params ProfileParams) (*Profile, error)
- func (c *Client) DeleteJob(id int) error
- func (c *Client) DeletePhoto(id int) error
- func (c *Client) DeleteProfile(id int) error
- func (c *Client) GetJob(id int) (*Job, error)
- func (c *Client) GetPhoto(id int) (*Photo, error)
- func (c *Client) GetPhotoUploadURL(params PhotoUploadUrlParams) (*PhotoUploadUrlResponse, error)
- func (c *Client) GetProfile(id int) (*Profile, error)
- func (c *Client) JobsInFront(id int) (*JobsInFront, error)
- func (c *Client) ListJobs() ([]Job, error)
- func (c *Client) ListPhotosForJob(jobID int) ([]Photo, error)
- func (c *Client) ListProfiles() ([]Profile, error)
- func (c *Client) QueueJob(id int, callbackURL string, skipPhotoValidation bool) (*Job, error)
- func (c *Client) UpdateJob(id int, params JobParams) (*Job, error)
- func (c *Client) UpdateProfile(id int, params ProfileParams) (*Profile, error)
- type Error
- type Job
- type JobParams
- type JobsInFront
- type Photo
- type PhotoParams
- type PhotoUploadUrlParams
- type PhotoUploadUrlResponse
- type Profile
- type ProfileParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestCreatePhoto ¶
func TestGetPhoto ¶
func TestGetPhotoUploadURL ¶
func TestListPhotosForJob ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreatePhoto ¶
func (c *Client) CreatePhoto(params PhotoParams) (*Photo, error)
func (*Client) CreateProfile ¶
func (c *Client) CreateProfile(params ProfileParams) (*Profile, error)
func (*Client) DeletePhoto ¶
func (*Client) DeleteProfile ¶
func (*Client) GetPhotoUploadURL ¶
func (c *Client) GetPhotoUploadURL(params PhotoUploadUrlParams) (*PhotoUploadUrlResponse, error)
func (*Client) JobsInFront ¶
func (c *Client) JobsInFront(id int) (*JobsInFront, error)
func (*Client) ListProfiles ¶
func (*Client) UpdateProfile ¶
func (c *Client) UpdateProfile(id int, params ProfileParams) (*Profile, error)
type Job ¶
type Job struct { ID int `json:"id"` AccountID int `json:"accountId"` Name string `json:"name"` State string `json:"state"` ProfileID int `json:"profileId"` Photos []Photo `json:"photos"` Profile Profile `json:"profile"` CreatedAt string `json:"createdAt"` UpdatedAt string `json:"updatedAt"` SubmittedAt string `json:"submittedAt"` CompletedAt string `json:"completedAt"` PresetType string `json:"presetType"` Type string `json:"type"` OutputLog string `json:"outputLog"` ExpiryDate string `json:"expiryDate"` PhotoDownloadUrls map[string]string `json:"photoDownloadUrls"` Errors []string `json:"errors"` CreditAmountPerPhoto float64 `json:"creditAmountPerPhoto"` DollarAmountPerPhoto float64 `json:"dollarAmountPerPhoto"` Processed map[string]int `json:"processed"` }
type JobsInFront ¶
type PhotoParams ¶
type PhotoUploadUrlParams ¶
type PhotoUploadUrlResponse ¶
type ProfileParams ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.