Versions in this module Expand all Collapse all v0 v0.9.1 Mar 5, 2021 Changes in this version + var ClickV1 = &APIVersion + var ErrNilOp = errors.New("nil operation") + var VersionV21 = &APIVersion + type APIVersion struct + Prefix string + Version string + func (v *APIVersion) ResolveDSURL(u *url.URL, host string, accountID string) *url.URL + type AdminConsentResponse struct + AMR []string + Audience string + AuthTime string + COID []string + ExpiresAt int64 + IssuedAt int64 + Issuer string + SiteID int64 + Subject string + type ConnectData struct + DocumentPdfs []DocumentPdfXML + EnvelopeStatus EnvelopeStatusXML + type Credential interface + AuthDo func(context.Context, *http.Request, *APIVersion) (*http.Response, error) + type CustomFieldXML struct + Name string + Required bool + Show bool + Value string + type DSTime string + func (d *DSTime) Time() time.Time + type DocumentPdfXML struct + Name string + PDFBytes string + type DocumentStatusXML struct + ID string + Name string + Sequence string + TemplateName string + type Download struct + ContentLength int64 + ContentType string + type EnvelopeStatusXML struct + ACHolder string + ACHolderEmail string + ACHolderLocation string + ACStatus string + ACStatusDate string + AuthoritativeCopy bool + AutoNavigation bool + Completed *DSTime + Created *DSTime + CustomFields []CustomFieldXML + Delivered *DSTime + DocumentStatuses []DocumentStatusXML + Email string + EnvelopeID string + EnvelopeIDStamping bool + EnvelopePDFHash string + RecipientStatuses []RecipientStatusXML + SenderIPAddress string + Sent *DSTime + Signed *DSTime + SigningLocation string + Status string + Subject string + TimeGenerated *DSTime + UserName string + VoidReason string + type JWTConfig struct + AccountID string + CacheFunc func(context.Context, oauth2.Token, UserInfo) + HTTPClientFunc ctxclient.Func + IntegratorKey string + IsDemo bool + KeyPairID string + Options *jwt.ConfigOptions + PrivateKey string + func (c *JWTConfig) Credential(apiUserName string, token *oauth2.Token, u *UserInfo, scopes ...string) (*OAuth2Credential, error) + func (c *JWTConfig) ExternalAdminConsentURL(redirectURL, authType, state string, prompt bool, scopes ...string) (string, error) + func (c *JWTConfig) UserConsentURL(redirectURL string, scopes ...string) string + type NmValXML struct + Name string + Value string + type OAuth2Config struct + AccountID string + CacheFunc func(context.Context, oauth2.Token, UserInfo) + ExtendedLifetime bool + HTTPClientFunc ctxclient.Func + IntegratorKey string + IsDemo bool + Prompt bool + RedirURL string + Secret string + UIlocales []string + func (c *OAuth2Config) AuthURL(state string, scopes ...string) string + func (c *OAuth2Config) Credential(tk *oauth2.Token, u *UserInfo) (*OAuth2Credential, error) + func (c *OAuth2Config) Exchange(ctx context.Context, code string) (*OAuth2Credential, error) + type OAuth2Credential struct + func TokenCredential(accessToken string, isDemo bool) *OAuth2Credential + func (cred *OAuth2Credential) AuthDo(ctx context.Context, req *http.Request, v *APIVersion) (*http.Response, error) + func (cred *OAuth2Credential) SetCacheFunc(f func(context.Context, oauth2.Token, UserInfo)) *OAuth2Credential + func (cred *OAuth2Credential) SetClientFunc(f ctxclient.Func) *OAuth2Credential + func (cred *OAuth2Credential) Token(ctx context.Context) (*oauth2.Token, error) + func (cred *OAuth2Credential) UserInfo(ctx context.Context) (*UserInfo, error) + func (cred *OAuth2Credential) WithAccountID(accountID string) *OAuth2Credential + type Op struct + Accept string + Credential Credential + Files []*UploadFile + Method string + Path string + Payload interface{} + QueryOpts url.Values + Version *APIVersion + func (op *Op) Do(ctx context.Context, result interface{}) error + type RecipientAttachmentXML struct + Data string + Label string + type RecipientStatusXML struct + AccountStatus string + CustomFields []CustomFieldXML + DeclineReason string + Delivered *DSTime + Email string + FormData []NmValXML + RecipientAttachment RecipientAttachmentXML + RecipientID string + RecipientIPAddress string + RoutingOrder string + Sent *DSTime + Signed *DSTime + Status string + TabStatuses []TabStatusXML + Type string + UserName string + type ResponseError struct + Description string + ErrorCode string + OriginalErr error + Raw []byte + Status int + func NewResponseError(buff []byte, status int) *ResponseError + func (r ResponseError) Error() string + type TabStatusXML struct + CustomTabType string + DocumentID string + ListSelectedValue string + ListValues string + OriginalValue string + PageNumber string + Status string + TabLabel string + TabName string + TabType string + TabValue string + ValidationPattern string + XPosition string + YPosition string + type UploadFile struct + ContentType string + FileName string + ID string + func (uf *UploadFile) Close() + func (uf *UploadFile) Valid() bool + type UserInfo struct + APIUsername string + Accounts []UserInfoAccount + Email string + FamilyName string + GivenName string + Name string + type UserInfoAccount struct + AccountID string + AccountName string + BaseURI string + IsDefault bool