12345678910111213141516171819202122232425262728293031323334 |
- package amo
- import (
- "surdeus.su/core/amo/api"
- "surdeus.su/core/amo/leads"
- "surdeus.su/core/amo/companies"
- "surdeus.su/core/amo/contacts"
- "surdeus.su/core/amo/events"
- )
- type Lead = leads.Lead
- type Company = companies.Company
- type Contact = contacts.Contact
- type Event = events.Event
- const (
- MEPR = api.MaxEntitiesPerRequest
- )
- type Client struct {
- API *api.Client
- }
- func NewClient(secretPath string) (*Client, error) {
- apiClient, err := api.NewAPI(secretPath)
- if err != nil {
- return nil, err
- }
- return &Client{
- API: apiClient,
- }, nil
- }
|