-
Notifications
You must be signed in to change notification settings - Fork 28
/
export_test.go
48 lines (35 loc) · 1.09 KB
/
export_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package hubspot
import "net/url"
// For test only
var (
ExportAPIVersion = defaultAPIVersion
ExportBaseURL = defaultBaseURL
ExportContactBasePath = contactBasePath
ExportDealBasePath = dealBasePath
ExportCompanyBasePath = companyBasePath
)
var (
ExportNewCRM = newCRM
ExportNewMarketing = newMarketing
ExportNewConversation = newConversation
ExportSetupProperties = (*RequestQueryOption).setupProperties
ExportFetchTokenFromHubSpot = (*OAuthTokenManager).fetchTokenFromHubSpot
ExportRefreshToken = (*OAuthTokenManager).refreshToken
ExportConvertToFormData = (*OAuthConfig).convertToFormData
ExportConfigValid = (*OAuthConfig).valid
ExportSetExpiry = (*OAuthToken).setExpiry
ExportTokenValid = (*OAuthToken).valid
ExportExpired = (*OAuthToken).expired
)
func (c *Client) ExportGetAPIVersion() string {
return c.apiVersion
}
func (c *Client) ExportGetBaseURL() *url.URL {
return c.baseURL
}
func (c *Client) ExportSetAPIVersion(version string) {
c.apiVersion = version
}
func (c *Client) ExportSetBaseURL(url *url.URL) {
c.baseURL = url
}