Skip to content

PrimePenguin/PrimePenguin.CentraSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrimePenguin.CentraSharp: A .NET library for CentraWeb.

NuGet Build status license

PrimePenguin.CentraSharp is a .NET library that enables you to authenticate and make API calls to Starweb. It's great for building custom Centra Apps using C# and .NET. You can quickly and easily get up and running with CentraWeb using this library.

Installation

Install-Package PrimePenguin.CentraSharp

If you're using .NET Core, you can use the dotnet command from your favorite shell:

dotnet add package CentraSharp

Using PrimePenguin.CentraSharp

Note: All instances of shopAccessToken in the examples below do not refer to your Centra API key. An access token is the token returned after authenticating and authorizing a Centra app installation with a real CentraWeb store.

Steps to get access token for centra


Open System settings for you centra store By logging into your store


Open your store to access the token


Open your store settings to access shop token and order token


Copy your store uri and  use access token for respective type

Note: myCentraWebUrl will be like store url-->https://PrimePenguin.com + /api/+ URI for the API type this will be different for Order and Shop So Kindly use respective token and Uri as per your store settings Final myCentraWebUrl will be likw : https://PrimePenguin.com/api/shop

var service = new ProductService(myCentraWebUrl, shopAccessToken);

APIS Token Use-Shop API Token (Obsolete)

  • CategoryService
  • BrandService
  • CampaignService

APIS Token Use-Order API Token

  • ProductService
  • OrderService
  • ReturnService
  • ShipmentService
  • SupplierDeliveryService
  • SupplierOrderService
  • CustomerService

API Reference

APIS Implemented

  • Customer
  • Order
  • Product
  • Shop

About

Centra C# SDK to interact with Centra APIs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •