Git Product home page Git Product logo

eco-api-sdk's Introduction

e-conomic .Net SDK

THIS SDK IS DEPRECATED AND UNSUPPORTED. WE ADVISE AGAINST USING IT. PLEASE SWITCH TO SOAP DIRECTLY OR OUR REST API.

NB: SOAP IS NOT DEPRECATED - ONLY THE SDK.

The current release (v1.4.22) which was released on Nov 16th 2015 was the last release of the SDK. From this date the SDK has been deprecated and we do not advise the use of this SDK. We will no longer fix bugs in this SDK. If you encounter bugs or want new functionality, we refer you to use our SOAP API directly or take a look at our REST API.

The 1.4.22 release includes both bugfixes and minor improvements. If you do use the SDK today, we urge you to at least upgrade to this version.

The 1.4.22 release includes a breaking change. You now have to specify an App Identifier string when creating a new instance of EconomicSession. This is a string, that identifies your app to us. The recommended identifier format is MyAppName/1.1 (http://example.com/MyAppName/; [email protected]).

You will need to uprade to this latest SDK as soon as possible. In the fall of 2015 this is the only SDK assembly that will work. All older binaries that do not include an app identifier will be rejected by our servers.

Below you can find a C# example

string myIdentifier = "MyCoolIntegration/1.1 (http://example.com/MyCoolIntegration/; [email protected]) BasedOnSuperLib/1.4";
var webservice = new EconomicSession(myIdentifier);

In February 2018 the SOAP API will cease support of Connect() and authentication must instead be done using ConnectWithToken. You can read more about tokens here: https://www.e-conomic.com/developer/connect

Alternatives to this SDK

You can find more developer resources at http://www.e-conomic.com/developer

We highly recommend using our REST API which is continuously expanded. It does not cover all functionality, but it is where our development resources are focused. The SOAP API is still supported, and is the API that covers most features.

When using the SOAP API directly you are required to define the 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/; [email protected]) BasedOnSuperLib/1.4";
    OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = requestMessage;

    session.ConnectWithToken(<token>, <appToken>);
}

eco-api-sdk's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.