Skip to content

Commit

Permalink
Merge 5f9e63b into 4bea80a
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomvsouza committed Jul 13, 2018
2 parents 4bea80a + 5f9e63b commit 3438d25
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
@@ -0,0 +1,22 @@
language : go

go:
- 1.8.x
- 1.9.x
- 1.10.x
- tip

go_import_path: go.bmvs.io/ynab

sudo: false

before_install:
- go get -u github.com/mattn/goveralls
- go get -u github.com/golang/dep/cmd/dep
- dep ensure

script:
- go test -v -race $(go list ./... | grep -v vendor)

after_success:
- goveralls -service=travis-ci
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# YNAB API Go Library

[![Build Status](https://travis-ci.com/brunomvsouza/ynab.go.svg?branch=master)](https://travis-ci.com/brunomvsouza/ynab.go) [![Coverage Status](https://coveralls.io/repos/github/brunomvsouza/ynab.go/badge.svg)](https://coveralls.io/github/brunomvsouza/ynab.go)

This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the [YNAB API](https://api.youneedabudget.com).

## Installation
Expand Down
2 changes: 1 addition & 1 deletion api/budget/service_test.go
Expand Up @@ -56,7 +56,7 @@ func TestService_GetBudgets(t *testing.T) {

assert.Equal(t, "aa248caa-eed7-4575-a990-717386438d2c", b.ID)
assert.Equal(t, "TestBudget", b.Name)
assert.Equal(t, "2018-03-05 17:05:23 +0000 +0000", b.LastModifiedOn.String())
assert.Equal(t, "2018-03-05 17:05:23 +0000 UTC", b.LastModifiedOn.String())
assert.Equal(t, "2018-03-01 00:00:00 +0000 UTC", b.FirstMonth.String())
assert.Equal(t, "2018-04-01 00:00:00 +0000 UTC", b.LastMonth.String())
assert.Equal(t, "DD.MM.YYYY", b.DateFormat.Format)
Expand Down
5 changes: 1 addition & 4 deletions example_test.go
Expand Up @@ -9,10 +9,7 @@ import (

func ExampleNewClient() {
c := ynab.NewClient("<valid_ynab_access_token>")
u, _ := c.User().GetUser()
fmt.Println(u.ID)

// Output: a9398633-7fb4-4951-a3c3-3fa425606be0
c.User().GetUser()
}

func ExampleClient_User() {
Expand Down

0 comments on commit 3438d25

Please sign in to comment.