Capture.as API client
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

26 рядки
438 B

  1. // Package captureas provides the binding for the Capture.as API
  2. package captureas
  3. import (
  4. "code.as/core/api"
  5. )
  6. const (
  7. apiURL = "https://capture.as"
  8. userAgent = "go-captureas"
  9. )
  10. type Client struct {
  11. *as.Client
  12. Username string
  13. Secret string
  14. }
  15. func NewClient(username, secret string) *Client {
  16. return &Client{
  17. Client: as.NewClient(as.NewClientConfig(apiURL, userAgent)),
  18. Username: username,
  19. Secret: secret,
  20. }
  21. }