-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
accountinfo.go
33 lines (24 loc) · 862 Bytes
/
accountinfo.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
package bamboohr
import (
"fmt"
)
// ListFields lists all the metadata fields your account has
func (b *Client) ListFields() ([]byte, error) {
endpointURL := fmt.Sprintf("%s/meta/fields", b.APIEndpoint)
return b.getRequest(endpointURL)
}
// ListTabularFields lists all the tables for your account
func (b *Client) ListTabularFields() ([]byte, error) {
endpointURL := fmt.Sprintf("%s/meta/tables", b.APIEndpoint)
return b.getRequest(endpointURL)
}
// ListListFields lists all the list fields your account has
func (b *Client) ListListFields() ([]byte, error) {
endpointURL := fmt.Sprintf("%s/meta/lists", b.APIEndpoint)
return b.getRequest(endpointURL)
}
// ListUsers lists all the users in your account
func (b *Client) ListUsers() ([]byte, error) {
endpointURL := fmt.Sprintf("%s/meta/users", b.APIEndpoint)
return b.getRequest(endpointURL)
}