GithubHelp home page GithubHelp logo

everytrail4net's Introduction

everytrail4net

everytrail4net is a simple C# wrapper around the existing functionality of the EveryTrail (www.everytrail.com) API.

The library in its current state is intended for C#.NET developers who would like a jumpstart to writing applications specifically against the EveryTrail API.

It is a work in a progress, so PLEASE do not hesitate to contact me with bugs, feature requests, etc...

The best source of documentation and expected behavior should be contained within the app itself. The WebSite project included in the solution is a test harness created to demonstrate how to consume the available methods of the library. The Tests project contains unit tests enforcing the expect behavior of these methods.

Set up and Configuration

Before using the EveryTrail API, you will need to register your application with EveryTrail in order to get an API key.

Once you have obtained credentials, you must update the appropriate .config (web.config or app.config) file within your application to include the following app settings:

  <appSettings>
    <add key="Key" value="YourKeyHere"/>
    <add key="Secret" value="YourKeySecretHere"/>
    <add key="Version" value="3"/>
  </appSettings>

Available Methods

UserLogin

Attempt to log in a user

Arguments:

  • userName (string) - The attempted user name
  • password (string) - The attempted password

Returns:

A UserLoginResponse object containing the status of the request and the user's ID if the request was successful.

using EveryTrailNET.Core;
using EveryTrailNET.Core.QueryResponse;
...
 UserLoginResponse response = Actions.UserLogin(txtUserName.Text, txtPassword.Text);

  if (response.Status)
  {
      ltlResponse.Text = "Successful Login. User id is " + response.UserID;
  }
  else
  {
      ltlResponse.Text = "Login failed";
  }

Building the app

Testing

Contributing

everytrail4net's People

Contributors

thelvey avatar

Stargazers

 avatar  avatar

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.