Skip to content
forked from gisce/effipy

Python library for the EffiPeople REST API

License

Notifications You must be signed in to change notification settings

effiPeople/effipy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python library for the EffiPeople REST API.

This is a pythonic library to access EffiPeople REST API.

Argot

  • Create is service.object().create(dict).
  • Read all is service.object().get().
  • Read one is service.object(identifier).get().
  • Update all is service.object().update(list_of_dicts).
  • Update one is service.object(identifier).update(dict).
  • Delete is service.object(identifier).delete().

Note: All the get() methods have optional parameters limit and offset.

Getting all the customers

from effipy import EffiPeople
ef = EffiPeople(token='YOUR_TOKEN')

Getting all the customers

ef.customers().get()

Creating a customer

customer_data = {
    'address': {
        'city': 'Barcelona',
        'cityCode': None,
        'country': None,
        'countryCode': None,
        'parcelNumber': None,
        'postalCode': u'8012',
        'province': None,
        'provinceCode': None,
        'street': 'CL SIRACUSA 17 01 03 08012 (Barcelona)'
    },
 	'email': None,
 	'firstName': ' nom 00004',
 	'firstSurname': 'cognom',
 	'fiscalId': 'DNI00004Z',
 	'id': 'TST0001',
 	'secondSurname': None
}
ef.customers().create(customer_data)

Getting a customer

ef.customer('TST0001').get()

Delete a customer

ef.customer('TST0001').delete()

About

Python library for the EffiPeople REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published