Update module path to git.denco.store/fakz9/ozon-api-client
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
A Ozon Seller API client written in Golang
|
A Ozon Seller API client written in Golang
|
||||||
|
|
||||||
[](https://coveralls.io/github/diPhantxm/ozon-api-client)
|
[](https://coveralls.io/github/diPhantxm/ozon-api-client)
|
||||||

|

|
||||||
|
|
||||||
[Ozon](https://ozon.ru) is a marketplace for small and medium enterprises to launch and grow their businesses in Russia.
|
[Ozon](https://ozon.ru) is a marketplace for small and medium enterprises to launch and grow their businesses in Russia.
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ Get Client-Id and Api-Key in your seller profile [here](https://seller.ozon.ru/a
|
|||||||
|
|
||||||
Just add dependency to your project and you're ready to go.
|
Just add dependency to your project and you're ready to go.
|
||||||
```bash
|
```bash
|
||||||
go get github.com/diphantxm/ozon-api-client
|
go get git.denco.store/fakz9/ozon-api-client
|
||||||
```
|
```
|
||||||
A simple example on how to use this library:
|
A simple example on how to use this library:
|
||||||
```Golang
|
```Golang
|
||||||
@@ -26,7 +26,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/diphantxm/ozon-api-client/ozon"
|
"git.denco.store/fakz9/ozon-api-client/ozon"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -65,7 +65,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/diphantxm/ozon-api-client/ozon/notifications"
|
"git.denco.store/fakz9/ozon-api-client/ozon/notifications"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Analytics struct {
|
type Analytics struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetAnalyticsData(t *testing.T) {
|
func TestGetAnalyticsData(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Barcodes struct {
|
type Barcodes struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGenerateBarcodes(t *testing.T) {
|
func TestGenerateBarcodes(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Brands struct {
|
type Brands struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListCertifiedBrands(t *testing.T) {
|
func TestListCertifiedBrands(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Cancellations struct {
|
type Cancellations struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetCancellationInfo(t *testing.T) {
|
func TestGetCancellationInfo(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Categories struct {
|
type Categories struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetProductTree(t *testing.T) {
|
func TestGetProductTree(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Certificates struct {
|
type Certificates struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListOfAccordanceTypes(t *testing.T) {
|
func TestListOfAccordanceTypes(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Chats struct {
|
type Chats struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListChats(t *testing.T) {
|
func TestListChats(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Clusters struct {
|
type Clusters struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListClusters(t *testing.T) {
|
func TestListClusters(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FBO struct {
|
type FBO struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetFBOShipmentsList(t *testing.T) {
|
func TestGetFBOShipmentsList(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FBS struct {
|
type FBS struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListUnprocessedShipments(t *testing.T) {
|
func TestListUnprocessedShipments(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Finance struct {
|
type Finance struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestReportOnSoldProducts(t *testing.T) {
|
func TestReportOnSoldProducts(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Invoices struct {
|
type Invoices struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateUpdateProformaLink(t *testing.T) {
|
func TestCreateUpdateProformaLink(t *testing.T) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testData struct {
|
type testData struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package ozon
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Passes struct {
|
type Passes struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListPasses(t *testing.T) {
|
func TestListPasses(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Polygons struct {
|
type Polygons struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCreateDeliveryPolygon(t *testing.T) {
|
func TestCreateDeliveryPolygon(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Products struct {
|
type Products struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetStocksInfo(t *testing.T) {
|
func TestGetStocksInfo(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Promotions struct {
|
type Promotions struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetAvailablePromotions(t *testing.T) {
|
func TestGetAvailablePromotions(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Quants struct {
|
type Quants struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListQuants(t *testing.T) {
|
func TestListQuants(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Rating struct {
|
type Rating struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetCurrentRatingInfo(t *testing.T) {
|
func TestGetCurrentRatingInfo(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Reports struct {
|
type Reports struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetList(t *testing.T) {
|
func TestGetList(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Returns struct {
|
type Returns struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetRFBSReturns(t *testing.T) {
|
func TestGetRFBSReturns(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Reviews struct {
|
type Reviews struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLeaveComment(t *testing.T) {
|
func TestLeaveComment(t *testing.T) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Strategies struct {
|
type Strategies struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestListCompetitors(t *testing.T) {
|
func TestListCompetitors(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Warehouses struct {
|
type Warehouses struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
core "github.com/diphantxm/ozon-api-client"
|
core "git.denco.store/fakz9/ozon-api-client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetListOfWarehouses(t *testing.T) {
|
func TestGetListOfWarehouses(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user