https://github.com/hotafrika/ebay-shopping-api
Golang client for eBay Shopping API
https://github.com/hotafrika/ebay-shopping-api
ebay ebay-api ebay-shopping-api go golang
Last synced: 5 months ago
JSON representation
Golang client for eBay Shopping API
- Host: GitHub
- URL: https://github.com/hotafrika/ebay-shopping-api
- Owner: hotafrika
- License: gpl-3.0
- Created: 2021-12-09T21:21:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T15:01:44.000Z (over 4 years ago)
- Last Synced: 2024-06-21T03:03:15.839Z (almost 2 years ago)
- Topics: ebay, ebay-api, ebay-shopping-api, go, golang
- Language: Go
- Homepage:
- Size: 59.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# ebay-shopping-api
Golang client for eBay Shopping API
For using eBay shopping API you need to get Application Token. You can make it using [this repo.](github.com/hotafrika/ebay-common)
### Example
```go
package main
import (
"fmt"
"github.com/hotafrika/ebay-common/auth"
"github.com/hotafrika/ebay-shopping-api"
)
func main() {
authService := auth.NewService().WithScopes(auth.ScopeCredentialCommon).
WithCredentials("myAppID", "myAppSecret")
token, err := authService.GetAppToken()
if err != nil {
panic(err)
}
shoppingService := shopping.NewService(token.Token)
r := shoppingService.NewGetSingleItemRequest()
r.WithItemID("123")
r.WithVariationSpecifics("param1", "one", "two")
r.WithVariationSpecifics("param2", "one2", "two2")
res, err := r.Execute()
if err != nil {
fmt.Println(err)
}
fmt.Println(res)
}
```