nucle.cloud
1.0.9
See the version list below for details.
dotnet add package nucle.cloud --version 1.0.9
NuGet\Install-Package nucle.cloud -Version 1.0.9
<PackageReference Include="nucle.cloud" Version="1.0.9" />
paket add nucle.cloud --version 1.0.9
#r "nuget: nucle.cloud, 1.0.9"
// Install nucle.cloud as a Cake Addin #addin nuget:?package=nucle.cloud&version=1.0.9 // Install nucle.cloud as a Cake Tool #tool nuget:?package=nucle.cloud&version=1.0.9
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 userSendEmailConfirmation(string projectId,string email)
Send email confirmation to email userasync 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)
Create if none exists then authenticate 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 variableasync 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 | Versions 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. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
remove class models