nucle.cloud 1.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package nucle.cloud --version 1.0.7                
NuGet\Install-Package nucle.cloud -Version 1.0.7                
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="nucle.cloud" Version="1.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nucle.cloud --version 1.0.7                
#r "nuget: nucle.cloud, 1.0.7"                
#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 nucle.cloud as a Cake Addin
#addin nuget:?package=nucle.cloud&version=1.0.7

// Install nucle.cloud as a Cake Tool
#tool nuget:?package=nucle.cloud&version=1.0.7                

Nucle Cloud .Net Library

In order to make life easier for you, we have created a Nucle Cloud .Net library that you can download and use. This tool will allow you instant access to the Nucle Cloud API service in a .Net environment, you will be writing less lines of code and save a lot of time.

Instalation

dotnet add package nucle.cloud

Content

First thing to do when using the library is to import it like bellow

using Nucle.Cloud;

User

  • async Task<UserModel> Create(string projectId,string userName,string email,string password)
    Create new user, return the user created.
  • async Task<LoginResult> Login(string projectId,string email,string password )
    Login a user.
  • async Task<LoginResult >RevokeToken(string userToken)
    Revoke a user token.
  • SendResetPassword(string projectId,string email)
    Send password reset email to email user
  • SendEmailConfirmation(string projectId,string email)
    Send email confirmation to email user
  • async Task<UserModel> Upgrade(string userToken,strin userName,string email,string password)
    Upgrade anonymous to real user, return upgraded user.
  • async Task<UserModel> GetById(string userToken,string userId)
    Get user by id ,return user.
  • async Task<string> GetType(string userToken)
    Get user type(REAL/ANONYMOUS/EXTERNALLOGIN).
  • async Task<UserModel> SetDisplayName(string userToken,string displayName)
    S et user displayName, return user.
  • async Task<GeolocalizationModel> GetGeolocalizationData(string userToken)
    Get user geolocalization data.
  • async Task<UserModel> Delete(string userToken)
    Delete user, return deleted user.

Anonymous

  • async Task<LoginResult> Login(string projectId,string deviceId)
    Login anonymous user.
  • async Task<UserModel> Create(string projectId,string deviceId)
    Create anonymous user.

External Login

  • async Task<UserModel> Create(string projectId,string loginProvider,string providerKey,string providerDisplayName,string userEmail,string userName)
    Create external login.
  • async Task<LoginResult> Login(string projectId,string loginProvider,string providerKey)
    Login using external login.
  • async Task<ExternalLoginModel> Get(string userToken,string loginProvider, string providerKey)
    Get external login.
  • async Task<ExternalLoginModel> Delete(string userToken,string loginProvider,string providerKey)
    Delete external login, return deleted external login.

Preset

  • async Task<PresetModel> GetById(string userToken,string presetId)
    Get preset by id.
  • async Task<PresetModel> GetByName(string userToken,string presetName)
    Get preset by name.

Variable

  • async Task<VariableModel> Update(string userToken,string presetId,string value)
    Update variable, if it does not exists this will create a new variable with the value provided.
  • async Task<VariableModel> Get(string userToken,string presetId)
    Get variable.
  • async Task<VariableModel> Delete(string userToken,string presetId)
    Delete variable, return deleted variable
  • async Task<VariablesModel> GetList(string userToken,string presetId,int skip,int take,orderType orderType,string searchValue)
    Get variables list,
    orderType: (argument) enum HighToLow=0, LowToHigh=1, Newest=2, Oldest=3.
    VariablesModel: (return type )an object that contains a list of (VariableModel) and totalCount of variables without pagination applied.
  • async Task<int> Count(string userToken,string presetId,string searchValue)
    Get the count of variables without pagination applied.

Example

Create a new user and print its id.
Project Id to get from Nucle.cloud dashboard.

using Nucle.Cloud;

var projectId= "b943*************************c173";
var newUser = await User.Create(projectId, "ross88@gmail.com", "P@ssw0rd", "ross") ;
Console.WriteLine("New user id= " + newUser.id);

Login a user and print its token.
Project Id to get from Nucle.cloud dashboard.

using Nucle.Cloud;

var projectId= "b943*************************c173";
var loginResult = await User.Login(projectId, "ross88@gmail.com", "P@ssw0rd");
Console.WriteLine("user Token= " + loginResult.userToken);

GitHub

You can always check the source code on GitHub, report any bugs or contribute if you would like.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.1.2 346 12/5/2022
1.1.1 438 10/11/2022
1.1.0 409 10/1/2022
1.0.9 442 9/21/2022
1.0.8 438 9/21/2022
1.0.7 459 9/21/2022
1.0.6 457 9/19/2022
1.0.5 455 9/17/2022
1.0.4 476 9/16/2022
1.0.3 476 9/15/2022
1.0.2 385 9/7/2022
1.0.1 379 9/7/2022

remove class models