rconomic | Ruby wrapper for the e-conomic API | REST library
kandi X-RAY | rconomic Summary
kandi X-RAY | rconomic Summary
Ruby wrapper for the [e-conomic] SOAP API, that aims at making working with the API bearable. E-conomic is a web-based accounting system. For their marketing speak, see [More details about their API at [
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns an array of field names .
- Fetches the entity data for a given entity
- Returns a Hash with the provided attributes
- Finds the dates of a given date
- Find an entity with another reference
- Find entities matching order
- return all book entries
- Create a cashbook account .
- Creates a new Entity instance .
- Builds an array of objects from an array of entries .
rconomic Key Features
rconomic Examples and Code Snippets
Community Discussions
Trending Discussions on rconomic
QUESTION
I'm new to Ruby and trying to use the Ruby gem 'rest-client' to access the REST API of my accounting system, e-conomic.com. I am able to connect via tokens and e.g. fetch customer details - so far, so good.
However, I'm struggling to figure out how to POST and thus create a new customer entry with e.g. address, name, mail etc.. In particular, I'm looking to get the code to both include my authentication token details (i.e. content of hHeader below), while also including a payload of customer details.
Details about the customer creation via the REST API: https://restdocs.e-conomic.com/#post-customer-groups
Details about the rest-client ruby gem: https://github.com/rest-client/rest-client
I'm running Ruby 2.3.3 on Windows 7 in the Atom editor. My code is as below:
...ANSWER
Answered 2017-Mar-05 at 21:51You put the wrong api doc, it's POST customer, not POST customer-groups. You should send the post with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rconomic
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page