Skip to content

Telefonica/latch-sdk-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LATCH SDK INSTALLATION GUIDE FOR .NET

INSTALLING THE MODULE LATCH

PREREQUISITES

  • Microsoft .Net Framework 4 or later.

  • To get the "Application ID" and "Secret", (fundamental values for integrating Latch in any application), it’s necessary to register a developer account in Latch's website. On the upper right side, click on "Developer area".

DOWNLOADING THE SDK

  • When the account is activated, the user will be able to create applications with Latch and access to developer documentation, including existing SDKs and plugins. The user has to access again to Developer area, and browse his applications from "My applications" section in the side menu.

  • When creating an application, two fundamental fields are shown: "Application ID" and "Secret", keep these for later use. There are some additional parameters to be chosen, as the application icon (that will be shown in Latch) and whether the application will support OTP (One Time Password) or not.

  • From the side menu in developers area, the user can access the "Documentation & SDKs" section. Inside it, there is a "SDKs and Plugins" menu. Links to different SDKs in different programming languages and plugins developed so far, are shown.

USING THE SDK IN C#.

  • Create a Latch object with the "Application ID" and "Secret" previously obtained.
     Latch latch = new Latch(APP_ID, SECRET);
  • Call to Latch Server. Pairing will return an Account ID that you should store for future API calls
     LatchResponse pairResponse = latch.Pair(TOKEN);
     LatchResponse statusResponse = latch.Status(ACCOUNT_ID);
     LatchResponse opStatusResponse = latch.OperationStatus(ACCOUNT_ID, OPERATION_ID);
     LatchResponse unpairResponse = latch.Unpair(ACCOUNT_ID);

RESOURCES