goreport badge

This commit is contained in:
Aliaksandr Pliutau 2016-12-22 12:06:00 +07:00
parent 7e723285e7
commit b46adc7bf2
4 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
[![Go Report Card](https://goreportcard.com/badge/logpacker/PayPal-Go-SDK)](https://goreportcard.com/report/logpacker/PayPal-Go-SDK)
[![Build Status](https://travis-ci.org/logpacker/PayPal-Go-SDK.svg?branch=master)](https://travis-ci.org/logpacker/PayPal-Go-SDK)
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/logpacker/PayPal-Go-SDK)
[![Chat at https://gitter.im/logpacker/PayPal-Go-SDK](https://img.shields.io/badge/gitter-dev_chat-46bc99.svg)](https://gitter.im/logpacker/PayPal-Go-SDK?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

2
doc.go
View File

@ -4,7 +4,7 @@ The first thing you do is to create a Client (you can select API base URL using
c, err := paypalsdk.NewClient("clientID", "secretID", paypalsdk.APIBaseSandBox)
Then you can get an access token from PayPal:
accessToken, err := c.GetAccessToken()
After you have an access token you can call built-in funtions to get data from PayPal.
After you have an access token you can call built-in functions to get data from PayPal.
paypalsdk will assign all responses to go structures.
*/
package paypalsdk

View File

@ -2,7 +2,7 @@ package paypalsdk
import "fmt"
// GetOrder retreives order by ID
// GetOrder retrieves order by ID
// Endpoint: GET /v1/payments/orders/ID
func (c *Client) GetOrder(orderID string) (*Order, error) {
order := &Order{}

View File

@ -1,6 +1,6 @@
package paypalsdk
// These tests test responses convertion from JSON to golang structs
// These tests test responses conversion from JSON to golang structs
import (
"encoding/json"