A C# implementation of the OriginStamp API. For endpoint documentation see OriginStamp Documentation.
For endpoint documentation see OriginStamp Documentation. This C# SDK is automatically generated by the Swagger Codegen project:
For more information, please visit https://originstamp.com.
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
- RestSharp - 105.1.0 or later
- Json.NET - 7.0.0 or later
- JsonSubTypes - 1.2.0 or later
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using OriginStamp.Client.Api;
using OriginStamp.Client.Client;
using OriginStamp.Client.Model;
The package is available via NuGet here.
using System;
using System.Diagnostics;
using OriginStamp.Client.Api;
using OriginStamp.Client.Client;
using OriginStamp.Client.Model;
namespace Example
{
public class CreateTimestampExample
{
public void main()
{
var apiInstance = new TimestampApi();
var authorization = "authorization_example"; // string | A valid API key is essential for authorization to handle the request.
var timestampRequest = new TimestampRequest(); // TimestampRequest | DTO for the hash submission. Add all relevant information concerning your hash submission.
try
{
// Submission
DefaultOfTimestampResponse result = apiInstance.CreateTimestamp(authorization, timestampRequest);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TimestampApi.CreateTimestamp: " + e.Message );
}
}
}
}
All URIs are relative to https://api.originstamp.com
Class | Method | HTTP request | Description |
---|---|---|---|
APIKeyApi | GetApiKeyUsage | GET /v3/api_key/usage | Usage |
BulkApi | CreateBulkTimestamp | POST /v4/timestamp/bulk/create | Bulk Submission |
BulkApi | GetSeedStatus | GET /v4/timestamp/status/seed/{seed_id} | Seed Status |
ProofApi | GetProof | POST /v3/timestamp/proof/url | Proof |
SchedulerApi | GetActiveCurrencies | GET /v3/currencies/get | Get active currencies |
TimestampApi | CreateTimestamp | POST /v4/timestamp/create | Submission |
TimestampApi | GetHashStatus | GET /v4/timestamp/{hash_string} | Status |
TimestampApi | GetSeedStatus | GET /v4/timestamp/status/seed/{seed_id} | Seed Status |
WebhookApi | GetWebhookStatus | POST /v3/webhook/information | Webhook |
WebhookApi | RegisterWebhookNotification | POST /v3/webhook/register | Webhook |
WebhookApi | TriggerTimestampWebhook | POST /v3/webhook/start | Dev |
- Model.CurrencyModel
- Model.DefaultOfDownloadLinkResponse
- Model.DefaultOfListOfCurrencyModel
- Model.DefaultOfTimestampData
- Model.DefaultOfTimestampResponse
- Model.DefaultOfVoid
- Model.DefaultOfWebhookResponse
- Model.DefaultOfstring
- Model.DefaultUsageResponse
- Model.DownloadLinkResponse
- Model.ManualWebhookRequest
- Model.Notification
- Model.ProofRequest
- Model.TimestampBulkRequest
- Model.TimestampData
- Model.TimestampRequest
- Model.TimestampResponse
- Model.UsageResponse
- Model.WebhookRequest
- Model.WebhookResponse
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header