Your Business Cockpit one REST call away. Online CRM / Invoicing integration / PDF Template
You never need to build your Customer Invoicing yourself again.
The SDK wraps the REST json schema API.
>>> pip install salesking
>>> from salesking import resources
>>> model = resources.get_model_class("client")
>>> data = {"organisation": "first customer"}
>>> client = model(data)
>>> client = client.save()
>>> from salesking import resources
>>> model = resources.get_model_class("client")
>>> client = model()
>>> client.organisation = "second customer"
>>> model = resources.get_model_class("address")
>>> address = model()
>>> address.city = u"Duisburg"
>>> address.address1 = u"Foo Street"
>>> address.address2 = u"Appartment Bar"
>>> address.address_type = u"work"
>>> client.addresses = [address]
>>> client = client.save()
>>> print client.get_data()
>>> from salesking import collection
>>> valid_filters = {u"q": u"salesking"}
>>> col = collection.get_collection_instance("client")
>>> col.set_filters(valid_filters)
>>> col.load()
>>> for x in col.items:
>>> print "numbers %s" % x.number
-
Register and activate a DEVELOPMENT USER at
-
Register Your app inside your salesking dev account
-
Take a look at the api
-
Browse the schema
-
create a local_settings.py in site-packages/salesking/.conf
-
edit your details in local_settings.py
-
have fun
* Examples
* Add Invoice
* Send Invoice