nucle.cloud 1.1.2

dotnet add package nucle.cloud --version 1.1.2
NuGet\Install-Package nucle.cloud -Version 1.1.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="nucle.cloud" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nucle.cloud --version 1.1.2
#r "nuget: nucle.cloud, 1.1.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 nucle.cloud as a Cake Addin
#addin nuget:?package=nucle.cloud&version=1.1.2

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

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> LoginWithEmail(string projectId,string email,string password )
    Login a user with email.
  • async Task<LoginResult> LoginWithUserName(string projectId,string userName,string password )
    Login a user with username.
  • async Task<LoginResult >RevokeToken(string userToken)
    Revoke a user token.
  • SendEmail(string projectId,string email,emailAction emailAction)
    Send a user an email to either confirm his email or to reset his password.
  • 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<UserModel> SetDisplayName(string userToken,string displayName)
    S et user displayName, return user.
  • async Task<UserModel> Delete(string userToken)
    Delete user, return deleted user.

Anonymous

  • async Task<UserModel> Create(string projectId,string deviceId)
    Create an anonymous user.
  • async Task<LoginResult> Login(string projectId,string deviceId)
    Authenticate anonymous user.
  • async Task<UserModel> Get(string projectId,string deviceId)
    Get an anonymous user, return null if no anonymous user was found with the same device id.

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, orderType orderType)
    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)
    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.

Event

  • async Task<EventModel> Register(string userToken,string presetId)
    Register event for the current date.
  • async Task<EventModel> Get(string userToken,string presetId)
    Get event.
  • async Task<EventsModel> GetList(string userToken,string presetId,int skip,int take,orderType orderType )
    Get events list.
  • async Task<EventModel> Delete(string userToken,string presetId,DateTime date)
    Delete event.

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.LoginWithEmail(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 316 12/5/2022
1.1.1 407 10/11/2022
1.1.0 398 10/1/2022
1.0.9 416 9/21/2022
1.0.8 426 9/21/2022
1.0.7 431 9/21/2022
1.0.6 428 9/19/2022
1.0.5 425 9/17/2022
1.0.4 444 9/16/2022
1.0.3 451 9/15/2022
1.0.2 363 9/7/2022
1.0.1 356 9/7/2022

remove class models