eWayCRM.API 1.6.2

dotnet add package eWayCRM.API --version 1.6.2                
NuGet\Install-Package eWayCRM.API -Version 1.6.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="eWayCRM.API" Version="1.6.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add eWayCRM.API --version 1.6.2                
#r "nuget: eWayCRM.API, 1.6.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install eWayCRM.API as a Cake Addin
#addin nuget:?package=eWayCRM.API&version=1.6.2

// Install eWayCRM.API as a Cake Tool
#tool nuget:?package=eWayCRM.API&version=1.6.2                

eWay-CRM API

API used for communication with eWay-CRM web service. It is a wrapper over HTTP/S communication and sessions. See our documentation for more information.

Installation

The simpliest way to start using this library is to get the NuGet Package. To do that, just run this command in your Package Manager Console (Visual Studio: Tools → NuGet Package Manager → Package Manager Console):

PM> Install-Package eWayCRM.API

Usage

This library wraps the communication with JSON API. To provide the most variability, it lets you to input JSON data and fetch JSON data. For JSON representation, we have chosen the NewtonSoft.Json/Json.NET library. As a consequence, be sure to have using Newtonsoft.Json.Linq; everywhere you need to work with our library.

The actual usage is then the same as it would be for example with PHP. See the documentation for more.

Establishing connection

To communicate with eWay-CRM web service, we first have to establish connection. This must be done prior to every action we want to accomplish with use of the web service. To do that, we have to create new instance of Connection with four parameters: service url address (same as the one you use in outlook), username, password and application identifier. Identifier is bound to application and its version. It must contain number at its end.


Connection wcfConnection = new Connection(
	"https://trial.eway-crm.com/31994",
	"api",
	Connection.HashPassword("ApiTrial@eWay-CRM"),
	"ExampleApplication100"
	);

⚠️ If you log into eWay-CRM with your Microsoft account Microsoft Account Authentication, the connector will not work with the legacy auth used in the examples. You will have to implement OAuth 2.0 authorization flow to get access and refresh token. You can see how to implement it in TimeClock app code. A ClientID / ClientSecret for you App will have to be created (click here for more details).

Actions at the service

You can check actions available on your service on [service adress]/WcfService/Service.svc/help . We have put together a list of examples for some basic actions you can use the service for, so don't be shy an try it out.

Create new company

Example showcasing creation of new Company.
Sample code here.

Edit existing company

Example showcasing editing existing Company.
Sample code here.

List all companies

Example showcasing listing of all existing Companies.
Sample code here.

Search for company

Example showcasing serching for Company by parameters.
Sample code here.

Delete company

Example showcasing deletion of Company.
Sample code here.

Example showcasing creation of simple relation.
Sample code here.

Create document

Example showcasing creation of document.
Sample code here.

Additional fields

Example showcasing manipulation with additional fields.
Sample code here.

Folder name

To ease understanding folder names, look here.

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.2 105 9/25/2024
1.6.1 80 9/25/2024
1.6.0 87 9/25/2024
1.5.9 231 8/1/2023
1.5.8 438 8/2/2022
1.5.7 415 6/2/2022
1.5.6 359 10/5/2021
1.5.5 358 5/10/2021
1.5.4 388 12/15/2020
1.5.3 422 9/7/2020
1.5.2 474 7/13/2020
1.5.1 427 6/30/2020
1.5.0 422 6/30/2020
1.4.1 466 5/5/2020
1.4.0 503 4/30/2020
1.3.5 461 2/3/2020
1.3.4 490 10/31/2019
1.3.3 479 10/31/2019
1.3.2 529 7/19/2019
1.3.1 504 7/19/2019
1.3.0 522 7/19/2019
1.2.4 556 5/6/2019
1.2.3 580 3/29/2019
1.2.2 567 3/28/2019
1.2.1 563 3/20/2019
1.2.0 561 3/14/2019
1.1.0.23874 907 6/5/2018
1.0.1.31352 911 5/11/2018
1.0.0 919 4/11/2018

1.6.0
ToStringForApi now supports new RFC format for date time.

1.5.9
Fixed possible NullReferenceException during login.
Updated Newtonsoft.Json.

1.5.8
Updated Newtonsoft.Json.

1.5.7
Added LogOut method.

1.5.6
Added helper class for OAuth.

1.5.4
Call RefreshAccessToken event on 401.

1.5.3
Added GetDateTime method for backward compatibility.

1.5.2
Allow client to refresh access token

1.5.1
Added method to get Web Service version

1.5.0
Added OAuth support

1.3.2
Added support for insecure API