Documentation
¶
Index ¶
- Variables
- type Activity
- type Deal
- type Oauth
- type Org
- type Pipedrive
- func (this *Pipedrive) GetDeal(ctx context.Context, bearer, domain string, dealId int) (*Deal, error)
- func (this *Pipedrive) GetOrg(ctx context.Context, bearer, domain string, orgId int) (*Org, error)
- func (this *Pipedrive) ListActivities(ctx context.Context, bearer, domain string, start, finish time.Time) (ret []*Activity, err error)
- func (this *Pipedrive) ListUsers(ctx context.Context, bearer, domain string) ([]*User, error)
- func (this *Pipedrive) OAuth(ctx context.Context, code string) (*Oauth, error)
- func (this *Pipedrive) RefreshToken(ctx context.Context, oldRefresh string) (*Oauth, error)
- func (this *Pipedrive) UpdateActivity(ctx context.Context, bearer, domain string, id, userId int, start time.Time) error
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnexpected = errors.New("idk...") ErrAuthExpired = errors.New("Auth Expired") )
Functions ¶
This section is empty.
Types ¶
type Pipedrive ¶
type Pipedrive struct {
OAuthClientId, OAuthClientSecret, RedirectURI string
}
func NewPipedrive ¶
inits our pipedrive api object with the required default info for everyone returns the object and a bool to indicate we're goods
func (*Pipedrive) GetDeal ¶ added in v0.2.0
func (this *Pipedrive) GetDeal(ctx context.Context, bearer, domain string, dealId int) (*Deal, error)
returns all jobs that match our conditions
func (*Pipedrive) ListActivities ¶
func (this *Pipedrive) ListActivities(ctx context.Context, bearer, domain string, start, finish time.Time) (ret []*Activity, err error)
returns all jobs that match our conditions
func (*Pipedrive) RefreshToken ¶
refreshes our api token using our old refresh token
Click to show internal directories.
Click to hide internal directories.