Hoxwi.DB
1.0.0.52
dotnet add package Hoxwi.DB --version 1.0.0.52
NuGet\Install-Package Hoxwi.DB -Version 1.0.0.52
<PackageReference Include="Hoxwi.DB" Version="1.0.0.52" />
paket add Hoxwi.DB --version 1.0.0.52
#r "nuget: Hoxwi.DB, 1.0.0.52"
// Install Hoxwi.DB as a Cake Addin
#addin nuget:?package=Hoxwi.DB&version=1.0.0.52
// Install Hoxwi.DB as a Cake Tool
#tool nuget:?package=Hoxwi.DB&version=1.0.0.52
Thank you for downloading HoxWi Client
Please note that any data stored during this alpha period could be removed at any time due to technical changes.
Please add this section of code to your app settings or Web.Config file to make your client work:
<add key="DefaultHoxDbSvcUrl" value="https://YOUR-AIRPORT-CODE.hoxwi.com"/>
<add key="HoxDbApiSecret" value="YOUR-SECRET-KEY"/>
Before starting using this component please create your account, it is completely free for up to a certain amount of transactions/month.
To create your account go to www.hoxwi.com
A very simple sample of use for this client is:
using HoxWi.Db.Client;
...
[HttpPost]
public ActionResult Index(FormCollection form)
{
var client = new Client(Modes.Dynamic);
var res = client.Add(new Db.InsertRequest("mycontainer", form));
if (res.Success)
ViewBag.Message = string.Format("Register had been included with the key {0}", res.Result);
else
ViewBag.Error = res.Error;
return View();
}
To expose an endpoint to provide or collect data from external sources (like partners) you must create public endpoints, following these steps:
- Create your public key (one for each external player if you wish)
Make a PUT call to: https://hoxwi.com/Wi/NewPublicKey
Raw body:
{ "secretkey":"YOUR-SECRET-KEY", "publickey": "THE-PUBLIC-KEY-NAME", "description": "Any description to help you understand what this endpoint does" }
- Configure your endpoint
Make a PUT call to: https://hoxwi.com/Dynamic/Add
Raw body: { "secretkey":"YOUR-SECRET-KEY ", "container": "hoxendpoints", "lazy":true, "document": { "name":"THE-PUBLIC-ENDPOINT-NAME", "container": "THE-INTERNAL-CONTAINER", "storageType": "mysql", "action": "insert", "restricted": true, "preJs":"", "posJs":"" } }
That is all. You now can share your endpoint with third parties and let then insert data into your brand-new container, the address would be:
https://hoxwi.com/Wi/ THE-PUBLIC-KEY-NAME/THE-PUBLIC-ENDPOINT-NAME
The raw body can contain any valid Json data.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 10.0.3)
- RestSharp (>= 105.2.3)
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 |
---|
Production version