Skip to content
/ gon11 Public

Hardly typed n11.com API parser writen in GO

Notifications You must be signed in to change notification settings

buroz/gon11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardly typed n11.com API Parser

(In Progress)

go get github.com/buroz/gon11
package main

import (
	"fmt"

	"github.com/buroz/gon11/src/n11"
)

func main() {
	var client = n11.Client{}

	user := client.Create("*appKey*", "*appSecret*")

	cities := client.Services.CityService.GetCity("07")
	fmt.Println(cities.Body.GetCityResponse.Result.Status)


	categories := client.Services.CategoryService.GetTopLevelCategories(user)

	if categories.Body.GetTopLevelCategoriesResponse.Result != "success" {
		panic(categories.Body.GetTopLevelCategoriesResponse.Result.ErrorMessage)
	}

	for _, d := range categories.Body.GetTopLevelCategoriesResponse.CategoryList.Category {
		fmt.Println(d.CategoryId, d.CategoryName)
	}
}

City Service
  • GetCities
  • GetCity
  • GetDistrict
  • GetNeighborhoods
Category Service
  • GetCategoryAttributes
  • GetCategoryAttributesId
  • GetCategoryAttributeValue
  • GetParentCategory
  • GetSubCategories
  • GetTopLevelCategories
Product Service
  • GetProductByProductId
  • GetProductBySellerCode
  • GetProductList
  • Save Product
  • SearchProducts
  • DeleteProductById
  • DeleteProductBySellerCode
  • UpdateDiscountValueByProductId
  • UpdateDiscountValueBySellerCode
  • UpdateProductPriceById
  • UpdateProductPriceBySellerCode
  • UpdateProductBasic
  • GetProductQuestionList
  • GetProductQuestionDetail
  • SaveProductAnswer
  • ProductAllStatusCountsRequest
Product Selling Service
  • ProductSellingService
  • StartSellingProductByProductId
  • StartSellingProductBySellerCode
  • StopSellingProductByProductId
  • StopSellingProductBySellerCode
Product Stock Service
  • GetProductStockByProductId
  • GetProductStockBySellerCode
  • DeleteAndUpdateStockByStockAttributes
  • UpdateStockByStockId
  • UpdateStockByStockSellerCode
  • IncreaseStockByStockAttributes
  • IncreaseStockByStockId
  • IncreaseStockByStockSellerCode
Order Service
  • DetailedOrderList
  • OrderList
  • OrderDetail
  • OrderItemAccept
  • OrderItemReject
  • MakeOrderItemShipment
Shipment Company Service
  • GetShipmentCompanies
Shipment Service
  • GetShipmentTemplate
  • CreateOrUpdateShipmentTemplate
  • GetShipmentTemplateList
Settlement Service
  • GetSettlementList
  • GetSettlementDetail
Ticket Service
  • TicketListingAssignedToSeller
  • TicketListingBelongsToSeller
  • TicketAnswer
  • TicketCreate

About

Hardly typed n11.com API parser writen in GO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages