(accountID, queueID, token string)
| 22 | } |
| 23 | |
| 24 | func NewClient(accountID, queueID, token string) *Client { |
| 25 | return &Client{ |
| 26 | BaseURL: defaultBaseURL, |
| 27 | AccountID: accountID, |
| 28 | QueueID: queueID, |
| 29 | Token: token, |
| 30 | HTTP: &http.Client{Timeout: 10 * time.Second}, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | type pushBody struct { |
| 35 | Body string `json:"body"` |