Skip to content

Releases: ebc-2in2crc/pixela4go

v1.9.0

20 Jan 12:08
Compare
Choose a tag to compare

What's Changed

	client := pixela.New("YOUR_NAME", "YOUR_TOKEN")

	input := &pixela.GraphUpdatePixelsInput{
		ID: String("GRAPH_ID"),
		Pixels: []PixelInput{
			{
				Date:     String("20180101"),
				Quantity: String("1"),
			},
			{
				Date:     String("20180102"),
				Quantity: String("2"),
			},
		},
	}
	result, err := client.Graph().UpdatePixels(input)

Full Changelog: v1.8.0...v1.9.0

v1.8.0

05 Sep 11:20
6ce8fdf
Compare
Choose a tag to compare

Support Pixela v1.27.0

What's Changed

Full Changelog: v1.7.1...v1.8.0

v1.7.1

05 Apr 15:52
80ba463
Compare
Choose a tag to compare

Support Pixela v1.26.1

  • Add constant: WebhookTypeAdd and WebhookTypeSubtract

v1.7.0

26 Mar 08:46
671c388
Compare
Choose a tag to compare

Support Pixela v1.26.0

  • Add: Graph.Add()
  • Add: Graph.Subtract()

v1.6.3

21 Aug 15:39
5964e98
Compare
Choose a tag to compare
  • Check if the work should be finished (Check channel that Context.Done() returns)

v1.6.2

03 Aug 15:55
c64dddb
Compare
Choose a tag to compare
  • Fix field name: IsRejected => isRejected

v1.6.1

03 Aug 02:55
afb4fc3
Compare
Choose a tag to compare
  • Determine by isRejected field whether the API call is rejected.

v1.6.0

02 Aug 16:35
112e172
Compare
Choose a tag to compare

Support Pixela v1.25.0

  • [Experimental] Support retries when an API call is rejected.
    This function is a measure for the specification added in Pixela v1.25.0.
  • Makefile: Use go install instead go get.

Support retries when an API call is rejected.

// Specify the number of retries if you want to retry when the API call is rejected.
// If you do not want to retry, you do not need to specify it.
pixela.RetryCount = 10

v1.5.0

30 Sep 12:48
bdbd7eb
Compare
Choose a tag to compare

Support HTTP response status code.

v1.4.0

06 Apr 13:28
Compare
Choose a tag to compare

Support context.Context