Git Product home page Git Product logo

ccwquery's Introduction

ccwquery

Simple Query Application for Cisco Commerce Workspace

Usage

This application leverages an object oriented approach to parse through a sales order from CCW.

  • ccwparser.py - Implementation of the CCWOrderParser Class
  • ccwquery.py - Implementation of a test application to use the class

Requirements

This application requires access to the "CCW Order API" provided at https://apiconsole.cisco.com/

You will need to register for an account. This will allow you to request access to the API which allows you to query for Cisco Access.

ccwquery.py is a very basic application that is used to request the sales order details using the Cisco API. This can be used as an example for your own code.

Methods Implemented

  • init - Initalizer for the object. You initialize the class by something similar to the following: order=ccwparser.CCWOrderParser(order_text) This example will take the raw text returned from the CCW API Request. It will convert it to JSON, and then set up the internal variables
  • display() - This will return the order in pprint format
  • status() - This will return the status of the order
  • billtoparty() - This will return the bill to party of the order
  • party() - This will return the party of the order (Most likely the end customer)
  • salesordernum() - This will return the Sales Order Number (SO#)
  • shiptoparty() - This will return the ship to party of the order
  • amount() - This will return the total amount of the order
  • currencycode() - This will return the currency code used for teh order
  • orderdetail() - This will return a dictionary of the order
  • display_order_detail() - This will return the details of the order in a very pretty format

ccwquery's People

Contributors

chrisbog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.