Skip to content
ardeearam edited this page Oct 29, 2014 · 20 revisions

GCore is a cloud-based retail platform developed by Galore Labs. The goal is to provide a retail back-end platform where any technology can connect and integrate with by following simple specifications.

Overview The GCORE API (Also known as Operations Management System or OMS) is a sessionless RESTful API that acccepts JSON-encoded string input, and outputs a JSON-encoded string. GCORE API (TL;DR) To login via the GCORE API, issue the HTTP message below from any HTTP 1.1-compliant client available. Note: if you are developing using Google Chrome, the REST Console is a good tool to play around and experiment with GCORE API. POST /session HTTP/1.1 Host: api.gcore.galoretv.com

{"username":"[email protected]", "password":"supplier"} The GCORE API will then respond with the following HTTP response: HTTP/1.1 200 OK x-GCore-Version: 0.99

{ "message": "Login-in successful:, "model": { "username": "supplier", "email": "[email protected]", "last_reset_date": "2013-11-10 02:36:13", "secret_token": "50a1b361defa50533acc33f8f129458c4178c5da", "created_at": "0000-00-00 00:00:00", "fk_supplier_id": "528f31841d9178075b4f02b4", "roles": ["supplier"], "_id": { "$id": "528ea86a1d9178075b4f02af" } } } See the Authentication Protocol section for more information on loggin in and subsequent authentication. To modifiy the status of a product, issue the following HTTP message. The example below sets the status of the product to 0, which disables the product. See the Authentication Protocol section on what to place in the Authorization header. PUT /product/4 HTTP/1.1 Host: api.gcore.galoretv.com Authorization: 528ea86a1d9178075b4f02af:50a1b361defa50533acc33f8f129458c4178c5da

{"status": 0}