This is a Ruby wrapper for the Sappiamo API.
gem install sappiamo
client = Sappiamo.client(endpoint: 'https://your-sappiamo-endpoint.com/api/v1, access_token: 'your-api-token)
client.titles.all # list out all titles in the sappiamo database
order = Sappiamo::Order.new(
cRAnrede: "Herr", cRVorname: "Test", cRName: "User", cRAdresse: "TestAdress",
cRPLZ: "4053", cROrt: "Basel", cRLandISO: "CH", cREMail: "[email protected]",
line_items_attributes: [
{
cProdKey: "D075D583-4D5E-4DE6-8D6B-9C7807A07DDD",
cAuflKey: "E9B80D78-6E5E-4890-90C9-3FBA4C949F36",
nBestellMnge: 2, nVerPreis: 49.0
},
{
cProdKey: "0819F486-2B8B-4F65-A181-1CD78A060278",
cAuflKey: "C8A275FC-E949-40E8-850D-A8665EB7D557",
nBestellMnge: 1,nVerPreis: 12.0
}])
client.orders.create(order)
If you find what looks like a bug:
- Check the GitHub issue tracker to see if anyone else has had the same issue. https://github.com/codegestalt/sappiamo/issues
- If you don’t see anything, create an issue with information on how to reproduce it.
If you want to contribute an enhancement or a fix:
- Fork the project on github https://github.com/codegestalt/sappiamo
- Make your changes with tests
- Commit the changes without messing with the Rakefile, or Version
- Make an entry to HISTORY.md
- Send me a pull request