Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 in SDK/evernote-sdk-csharp from ~AFAN/evernote-…
…sdk-csharp:master to master * commit '7691321219f278cca0770d39d8f8be41c6170d49': Bump up the version number + auto-formatting Evernote Cloud SDK 1.29, built with Thrift 0.10.0
- Loading branch information
Showing
107 changed files
with
60,005 additions
and
25,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,43 @@ | ||
Evernote SDK for C# | ||
======================================== | ||
# Evernote SDK for C# | ||
|
||
Evernote API version 1.25 | ||
Evernote API version 1.29 | ||
|
||
## Overview | ||
|
||
Overview | ||
-------- | ||
This SDK contains wrapper code used to call the Evernote Cloud API from C# applications. | ||
|
||
The SDK also contains three sample solutions. The solution in sample/client demonstrates the basic use of the SDK in a .NET application like you might build for the Windows desktop. The solution in sample/wp7 demonstrates the basic use of the SDK in a Windows Phone 7 Silverlight application. The solution in sample/win8 demonstrates the basic use of the SDK in a Windows 8 XAML/C# Store App. | ||
|
||
Prerequisites | ||
------------- | ||
## Prerequisites | ||
|
||
In order to use the code in this SDK, you need to obtain an API key from http://dev.evernote.com/documentation/cloud. You'll also find full API documentation on that page. | ||
|
||
In order to run the sample code, you need a user account on the sandbox service where you will do your development. Sign up for an account at https://sandbox.evernote.com/Registration.action | ||
In order to run the sample code, you need a user account on the sandbox service where you will do your development. Sign up for an account at https://sandbox.evernote.com/Registration.action | ||
|
||
In order to run the client client sample code, you need a developer token. Get one at https://sandbox.evernote.com/api/DeveloperToken.action | ||
|
||
Getting Started - Windows | ||
------------------------- | ||
The project in sample\client demonstrates the basics of using the Evernote API, using developer tokens to simplify the authentication process while you're learning. | ||
|
||
1. Open sample\client\Evernote.sln | ||
2. In the Solution Explorer, open the SampleApp project and then the EDAMTest.cs file. | ||
3. Scroll down to the top of the EDAMTest class and fill in your Evernote developer token. | ||
4. Build the solution, which produces a command-line application. | ||
5. Run the sample app | ||
|
||
Getting Started - Windows Phone 7 | ||
--------------------------------- | ||
1. Open sample\wp7\EvernoteSample.sln. | ||
2. In the Solution Explorer, open the EvernoteSample project and then the Sample.cs file. | ||
3. Scroll down to the top of the EDAMTest class and fill in your Evernote developer token. | ||
4. Build the solution and run it in the Windows Phone Emulator. | ||
5. Click the "Start the connection process" button in the sample app. | ||
|
||
|
||
Getting Started - Windows 8 | ||
--------------------------------- | ||
1. Open sample\win8\EvernoteSample.sln in Visual Studio 12 or 13. | ||
2. In the Solution Explorer, open the EvernoteSample project and then the Sample.cs file. | ||
3. Scroll down to the top of the EDAMTest class and fill in your Evernote developer token. | ||
4. Build the solution and run it. | ||
5. Click the "Start the connection process" button in the sample app. | ||
## Getting Started - Windows | ||
|
||
The project in sample\client demonstrates the basics of using the Evernote API, using developer tokens to simplify the authentication process while you're learning. | ||
|
||
1. Open sample\client\Evernote.sln | ||
2. In the Solution Explorer, open the SampleApp project and then the EDAMTest.cs file. | ||
3. Scroll down to the top of the EDAMTest class and fill in your Evernote developer token. | ||
4. Build the solution, which produces a command-line application. | ||
5. Run the sample app | ||
|
||
## Getting Started - Windows Phone 7 | ||
|
||
1. Open sample\wp7\EvernoteSample.sln. | ||
2. In the Solution Explorer, open the EvernoteSample project and then the Sample.cs file. | ||
3. Scroll down to the top of the EDAMTest class and fill in your Evernote developer token. | ||
4. Build the solution and run it in the Windows Phone Emulator. | ||
5. Click the "Start the connection process" button in the sample app. | ||
|
||
## Getting Started - Windows 8 | ||
|
||
1. Open sample\win8\EvernoteSample.sln in Visual Studio 12 or 13. | ||
2. In the Solution Explorer, open the EvernoteSample project and then the Sample.cs file. | ||
3. Scroll down to the top of the EDAMTest class and fill in your Evernote developer token. | ||
4. Build the solution and run it. | ||
5. Click the "Start the connection process" button in the sample app. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Autogenerated by Thrift Compiler (1.0.0-dev) | ||
* | ||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | ||
* @generated | ||
*/ | ||
|
||
namespace Evernote.EDAM.Error | ||
{ | ||
/// <summary> | ||
/// An enumeration that provides a reason for why a given contact was invalid, for example, | ||
/// as thrown via an EDAMInvalidContactsException. | ||
/// | ||
/// <dl> | ||
/// <dt>BAD_ADDRESS</dt> | ||
/// <dd>The contact information does not represent a valid address for a recipient. | ||
/// Clients should be validating and normalizing contacts, so receiving this | ||
/// error code commonly represents a client error. | ||
/// </dd> | ||
/// <dt>DUPLICATE_CONTACT</dt> | ||
/// <dd>If the method throwing this exception accepts a list of contacts, this error | ||
/// code indicates that the given contact is a duplicate of another contact in | ||
/// the list. Note that the server may clean up contacts, and that this cleanup | ||
/// occurs before checking for duplication. Receiving this error is commonly | ||
/// an indication of a client issue, since client should be normalizing contacts | ||
/// and removing duplicates. All instances that are duplicates are returned. For | ||
/// example, if a list of 5 contacts has the same e-mail address twice, the two | ||
/// conflicting e-mail address contacts will be returned. | ||
/// </dd> | ||
/// <dt>NO_CONNECTION</dt> | ||
/// <dd>Indicates that the given contact, an Evernote type contact, is not connected | ||
/// to the user for which the call is being made. It is possible that clients are | ||
/// out of sync with the server and should re-synchronize their identities and | ||
/// business user state. See Identity.userConnected for more information on user | ||
/// connections. | ||
/// </dd> | ||
/// </dl> | ||
/// | ||
/// Note that if multiple reasons may apply, only one is returned. The precedence order | ||
/// is BAD_ADDRESS, DUPLICATE_CONTACT, NO_CONNECTION, meaning that if a contact has a bad | ||
/// address and is also duplicated, it will be returned as a BAD_ADDRESS. | ||
/// </summary> | ||
public enum EDAMInvalidContactReason | ||
{ | ||
BAD_ADDRESS = 0, | ||
DUPLICATE_CONTACT = 1, | ||
NO_CONNECTION = 2, | ||
} | ||
} |
Oops, something went wrong.