Check out all e-conomic Developer Network resources at http://www.e-conomic.com/developer
Latest commit 7cbeffc Aug 31, 2016 @olejessien olejessien committed on GitHub Added note about PHP version
Permalink
Failed to load latest commit information.
examples Added note about PHP version Aug 31, 2016
.gitignore First simple java client app Dec 5, 2012
README.md Update README.md Nov 2, 2015

README.md

Looking for e-conomic .Net SDK? It has moved!

Find the SDK here: https://github.com/e-conomic/eco-api-sdk

e-conomic API examples

Examples for basic e-conomic SOAP API and REST API interaction.

We advice that you use our REST API if it covers your needs today. The REST API is currently under development and does not cover all functionality of e-conomic, but it is where our development resources are focused. Our SOAP API is still supported, and is currently the API that covers most of the e-conomic functionality.

For in-context examples of using the REST API please see the REST API Documentation: http://restdocs.e-conomic.com/

When using the SOAP API methods Connect() and ConnectAsAdministrator() you are required to define an AppIdentifier like so:

using (var operationScope = new OperationContextScope(session.InnerChannel))
{
    // Add a HTTP Header to an outgoing request
    var requestMessage = new HttpRequestMessageProperty();
    requestMessage.Headers["X-EconomicAppIdentifier"] = "MyCoolIntegration/1.1 (http://example.com/MyCoolIntegration/; MyCoolIntegration@example.com) BasedOnSuperLib/1.4";
    OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = requestMessage;

    session.Connect(<agreement>, <user>, <password>);
}

The AppIdentifier is only readable by e-conomic. Please include as much information as necessary for us to be able to reach you the developers efficiently.