https://github.com/jjideenschmiede/timev2api
To get straight information about your timev2 clients and projects.
https://github.com/jjideenschmiede/timev2api
api golang timev2
Last synced: 7 months ago
JSON representation
To get straight information about your timev2 clients and projects.
- Host: GitHub
- URL: https://github.com/jjideenschmiede/timev2api
- Owner: jjideenschmiede
- Created: 2021-01-02T12:40:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T12:51:45.000Z (over 5 years ago)
- Last Synced: 2024-12-28T15:46:22.127Z (over 1 year ago)
- Topics: api, golang, timev2
- Language: Go
- Homepage: https://timev2.de
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# timev2 API
The easiest way to load customers or projects from your timev2.
## Install
```console
go get github.com/jjideenschmiede/timev2api
```
## How to use?
You only need your API token and the domain key. With this you get the data back in a struct.
### Clients
```go
clients, err := timev2api.Clients("domainkey", "apitoken")
if err != nil {
fmt.Println(err)
}
```
### Projects
```go
projects, err := timev2api.Projects("domainkey", "apitoken")
if err != nil {
fmt.Println(err)
}
```
### Users
```go
users, err := timev2api.Users("domainkey", "apitoken")
if err != nil {
fmt.Println(err)
}
```