Capture.as API client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
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. }