gene
038c42611c
|
2 years ago | |
---|---|---|
.. | ||
.swagger-codegen | 2 years ago | |
.vs | 2 years ago | |
docs | 2 years ago | |
src | 2 years ago | |
.gitignore | 2 years ago | |
.swagger-codegen-ignore | 2 years ago | |
.travis.yml | 2 years ago | |
CircleSDK.sln | 2 years ago | |
IO.Swagger.sln | 2 years ago | |
README.md | 2 years ago | |
build.bat | 2 years ago | |
build.sh | 2 years ago | |
git_push.sh | 2 years ago | |
mono_nunit_test.sh | 2 years ago |
README.md
<<<<<<< Updated upstream
CircleSDK - the C# library for the Circle
=======
IO.Swagger - the C# library for the Circle
Stashed changes
Circle API
This C# SDK is automatically generated by the Swagger Codegen project:
- API version: 0.1
- SDK version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen For more information, please visit https://gocircle.ai/
Frameworks supported
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
Dependencies
- 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
Installation
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:
<<<<<<< Updated upstream
using CircleSDK.Api;
using CircleSDK.Client;
using CircleSDK.Model;
=======
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
>>>>>>> Stashed changes
Packaging
A .nuspec
is included with the project. You can follow the Nuget quickstart to create and publish packages.
This .nuspec
uses placeholders from the .csproj
, so build the .csproj
directly:
<<<<<<< Updated upstream
nuget pack -Build -OutputDirectory out CircleSDK.csproj
=======
nuget pack -Build -OutputDirectory out IO.Swagger.csproj
>>>>>>> Stashed changes
Then, publish to a local feed or other host and consume the new package via Nuget as usual.
Getting Started
using System;
using System.Diagnostics;
<<<<<<< Updated upstream
using CircleSDK.Api;
using CircleSDK.Client;
using CircleSDK.Model;
=======
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
>>>>>>> Stashed changes
namespace Example
{
public class Example
{
public void main()
{
var apiInstance = new CircleApi();
<<<<<<< Updated upstream
var body = new AddMemberToTopicRequest(); // AddMemberToTopicRequest |
var authorization = authorization_example; // string | Authorization Bearer
=======
var body = new AddFileRequest(); // AddFileRequest |
>>>>>>> Stashed changes
var xCircleAppkey = xCircleAppkey_example; // string | Application `appKey`
try
{
<<<<<<< Updated upstream
// addMemberToTopic
AddMemberToTopicReply result = apiInstance.AddMemberToTopic(body, authorization, xCircleAppkey);
=======
// addFile
AddFileReply result = apiInstance.AddFile(body, xCircleAppkey);
>>>>>>> Stashed changes
Debug.WriteLine(result);
}
catch (Exception e)
{
<<<<<<< Updated upstream
Debug.Print("Exception when calling CircleApi.AddMemberToTopic: " + e.Message );
=======
Debug.Print("Exception when calling CircleApi.AddFile: " + e.Message );
>>>>>>> Stashed changes
}
}
}
}
Documentation for API Endpoints
<<<<<<< Updated upstream All URIs are relative to http://127.0.0.1:31415
Class | Method | HTTP request | Description |
---|---|---|---|
CircleApi | AddMemberToTopic | POST /v1/addMemberToTopic | addMemberToTopic |
CircleApi | AddMessage | POST /v1/addMessage | addMessage |
CircleApi | AddValue | POST /v1/addValue | addValue |
CircleApi | ApproveCoTInvoke | POST /v1/approveCoTInvoke | ApproveCoTInvoke |
CircleApi | Authorize | POST /v1/authorize | authorize |
CircleApi | Background | POST /v1/background | background |
CircleApi | ConfigureService | POST /v1/configureService | configureService |
CircleApi | CreateCircle | POST /v1/createCircle | createCircle |
CircleApi | CreateTopic | POST /v1/createTopic | createTopic |
CircleApi | Decrypt | POST /v1/decrypt | decrypt |
CircleApi | DefineCircleOfTrust | POST /v1/defineCircleOfTrust | DefineCircleOfTrust |
CircleApi | DeleteCircle | POST /v1/deleteCircle | DeleteCircle |
CircleApi | DeleteFile | POST /v1/deleteFile | deleteFile |
CircleApi | DeleteKey | POST /v1/deleteKey | deleteKey |
CircleApi | DeleteMessage | POST /v1/deleteMessage | DeleteMessage |
CircleApi | DenyCoTInvoke | POST /v1/denyCoTInvoke | DenyCoTInvoke |
CircleApi | DownloadFile | POST /v1/downloadFile | downloadFile |
CircleApi | Encrypt | POST /v1/encrypt | encrypt |
CircleApi | EnumCircleMembers | POST /v1/enumCircleMembers | enumCircleMembers |
CircleApi | EnumCircles | POST /v1/enumCircles | enumCircles |
CircleApi | EnumDevices | POST /v1/enumDevices | enumDevices |
CircleApi | EnumFiles | POST /v1/enumFiles | enumFiles |
CircleApi | EnumInvites | POST /v1/enumInvites | enumInvites |
CircleApi | EnumKeys | POST /v1/enumKeys | enumKeys |
CircleApi | EnumRevisions | POST /v1/enumRevisions | enumRevisions |
CircleApi | EnumTopicMembers | POST /v1/enumTopicMembers | enumTopicMembers |
CircleApi | EnumTopics | POST /v1/enumTopics | enumTopics |
CircleApi | Foreground | POST /v1/foreground | foreground |
CircleApi | GenInvite | POST /v1/genInvite | genInvite |
CircleApi | GetCircleOfTrust | POST /v1/getCircleOfTrust | GetCircleOfTrust |
CircleApi | GetCirclePublicKey | POST /v1/getCirclePublicKey | GetCirclePublicKey |
CircleApi | GetMessage | POST /v1/getMessage | GetMessage |
CircleApi | GetMessages | POST /v1/getMessages | getMessages |
CircleApi | GetRAVStatus | POST /v1/getRAVStatus | GetRAVStatus |
CircleApi | GetSecureFileContents | POST /v1/getSecureFileContents | GetSecureFileContents |
CircleApi | GetSyncStatus | POST /v1/getSyncStatus | getSyncStatus |
CircleApi | GetUserPublicKey | POST /v1/getUserPublicKey | GetUserPublicKey |
CircleApi | GetValue | POST /v1/getValue | getValue |
CircleApi | JoinTopic | POST /v1/joinTopic | joinTopic |
CircleApi | LeaveTopic | POST /v1/leaveTopic | leaveTopic |
CircleApi | LockUser | POST /v1/lockUser | lockUser |
CircleApi | LoginWithCircle | POST /v1/loginWithCircle | LoginWithCircle |
CircleApi | LogintoService | POST /v1/logintoService | logintoService |
CircleApi | ProcessInvite | POST /v1/processInvite | processInvite |
CircleApi | RemoveMember | POST /v1/removeMember | removeMember |
======= All URIs are relative to http://localhost:31415
Class | Method | HTTP request | Description |
---|---|---|---|
CircleApi | AddFile | POST /v1/addFile | addFile |
CircleApi | AddMemberToTopic | POST /v1/addMemberToTopic | addMemberToTopic |
CircleApi | AddMessge | POST /v1/addMessge | addMessge |
CircleApi | Authorize | POST /v1/authorize | authorize |
CircleApi | Background | POST /v1/background | background |
CircleApi | CreateCircle | POST /v1/createCircle | createCircle |
CircleApi | CreateTopic | POST /v1/createTopic | createTopic |
CircleApi | DecryptFile | POST /v1/decryptFile | decryptFile |
CircleApi | DeleteFile | POST /v1/deleteFile | deleteFile |
CircleApi | EncryptFile | POST /v1/encryptFile | encryptFile |
CircleApi | EnumCircleMembers | GET /v1/enumCircleMembers | enumCircleMembers |
CircleApi | EnumCircles | GET /v1/enumCircles | enumCircles |
CircleApi | EnumDevices | GET /v1/enumDevices | enumDevices |
CircleApi | EnumFiles | GET /v1/enumFiles | enumFiles |
CircleApi | EnumInvites | GET /v1/enumInvites | enumInvites |
CircleApi | EnumRevisions | GET /v1/enumRevisions | enumRevisions |
CircleApi | EnumTopicMembers | GET /v1/enumTopicMembers | enumTopicMembers |
CircleApi | EnumTopics | GET /v1/enumTopics | enumTopics |
CircleApi | Foreground | POST /v1/foreground | foreground |
CircleApi | GenInvite | POST /v1/genInvite | genInvite |
CircleApi | GetFile | GET /v1/getFile | getFile |
CircleApi | GetMessges | GET /v1/getMessges | getMessges |
CircleApi | GetTopicKey | GET /v1/getTopicKey | getTopicKey |
CircleApi | Invite | POST /v1/invite | invite |
CircleApi | JoinTopic | POST /v1/joinTopic | joinTopic |
CircleApi | LeaveTopic | POST /v1/leaveTopic | leaveTopic |
Stashed changes CircleApi | RemoveMemberFromTopic | POST /v1/removeMemberFromTopic | removeMemberFromTopic CircleApi | RenameFile | POST /v1/renameFile | renameFile CircleApi | RevokeDevice | POST /v1/revokeDevice | revokeDevice CircleApi | RevokeInvite | POST /v1/revokeInvite | revokeInvite <<<<<<< Updated upstream CircleApi | SecureContents | POST /v1/secureContents | SecureContents CircleApi | SecureFile | POST /v1/secureFile | SecureFile CircleApi | ServiceStatus | POST /v1/serviceStatus | serviceStatus CircleApi | SetUserId | POST /v1/setUserId | SetUserId CircleApi | SignDataWithCircleKey | POST /v1/signDataWithCircleKey | SignDataWithCircleKey CircleApi | SignDataWithUserKey | POST /v1/signDataWithUserKey | SignDataWithUserKey CircleApi | StoreToken | POST /v1/storeToken | storeToken CircleApi | UnlockUser | POST /v1/unlockUser | unlockUser CircleApi | UpdateTopic | POST /v1/updateTopic | updateTopic CircleApi | UploadFile | POST /v1/uploadFile | uploadFile CircleApi | WhoAmI | POST /v1/whoAmI | whoAmI ======= CircleApi | WhoAmI | GET /v1/whoAmI | whoAmI Stashed changes
Documentation for Models
<<<<<<< Updated upstream
- Model.AddMemberToTopicReply
- Model.AddMemberToTopicRequest
- Model.AddMessageReply
- Model.AddMessageRequest
- Model.AddValueReply
- Model.AddValueRequest
- Model.AppAuthorizationReply
- Model.AppAuthorizationRequest
- Model.ApproveCoTInvokeReply
- Model.ApproveCoTInvokeRequest
- Model.BackgroundReply
- Model.BackgroundRequest
- Model.CircleInfo
- Model.CoTPolicyResult
- Model.ConfigureServiceReply
- Model.ConfigureServiceRequest =======
- Model.AddFileReply
- Model.AddFileRequest
- Model.AddMemberToTopicReply
- Model.AddMemberToTopicRequest
- Model.AddMessgeReply
- Model.AddMessgeRequest
- Model.AppAuthorization
- Model.BackgroundReply
- Model.BackgroundRequest
- Model.CircleInfo
Stashed changes
- Model.CreateCircleReply
- Model.CreateCircleRequest
- Model.CreateTopicReply
- Model.CreateTopicRequest
- Model.DecryptFileReply
- Model.DecryptFileRequest <<<<<<< Updated upstream
- Model.DecryptReply
- Model.DecryptRequest
- Model.DefineCircleOfTrustReply
- Model.DefineCircleOfTrustRequest
- Model.DeleteCircleReply
- Model.DeleteCircleRequest
- Model.DeleteFileReply
- Model.DeleteFileRequest
- Model.DeleteKeyReply
- Model.DeleteKeyRequest
- Model.DeleteMessageReply
- Model.DeleteMessageRequest
- Model.DenyCoTInvokeReply
- Model.DenyCoTInvokeRequest
- Model.DeviceInfo
- Model.DownloadFileReply
- Model.DownloadFileRequest
- Model.EncryptReply
- Model.EncryptRequest =======
- Model.DeleteFileReply
- Model.DeleteFileRequest
- Model.DeviceInfo
- Model.EncryptFileReply
- Model.EncryptFileRequest
Stashed changes
- Model.EnumCircleMembersReply
- Model.EnumCircleMembersRequest
- Model.EnumCirclesReply
- Model.EnumCirclesRequest
- Model.EnumDevicesReply
- Model.EnumDevicesRequest
- Model.EnumFilesReply
- Model.EnumFilesRequest
- Model.EnumInvitesReply
- Model.EnumInvitesRequest <<<<<<< Updated upstream
- Model.EnumKeysReply
- Model.EnumKeysRequest =======
Stashed changes
- Model.EnumRevisionsReply
- Model.EnumRevisionsRequest
- Model.EnumTopicMembersReply
- Model.EnumTopicMembersRequest
- Model.EnumTopicsReply
- Model.EnumTopicsRequest
- Model.FileInfo
- Model.ForegroundReply
- Model.ForegroundRequest
- Model.GenInviteReply
- Model.GenInviteRequest <<<<<<< Updated upstream
- Model.GetCircleOfTrustReply
- Model.GetCircleOfTrustRequest
- Model.GetCirclePublicKeyReply
- Model.GetCirclePublicKeyRequest
- Model.GetMessageReply
- Model.GetMessageRequest
- Model.GetMessagesReply
- Model.GetMessagesRequest
- Model.GetRAVStatusReply
- Model.GetRAVStatusRequest
- Model.GetSecureFileContentsReply
- Model.GetSecureFileContentsRequest
- Model.GetSyncStatusReply
- Model.GetSyncStatusRequest
- Model.GetUserPublicKeyReply
- Model.GetUserPublicKeyRequest
- Model.GetValueReply
- Model.GetValueRequest
- Model.InviteInfo =======
- Model.GenerateTokenReply
- Model.GetFileReply
- Model.GetFileRequest
- Model.GetMessgesReply
- Model.GetMessgesRequest
- Model.GetTopicKeyReply
- Model.GetTopicKeyRequest
- Model.InviteInfo
- Model.InviteReply
- Model.InviteRequest
Stashed changes
- Model.JoinTopicReply
- Model.JoinTopicRequest
- Model.LeaveTopicReply
- Model.LeaveTopicRequest <<<<<<< Updated upstream
- Model.LockUserReply
- Model.LockUserRequest
- Model.LoginWithCircleReply
- Model.LoginWithCircleRequest
- Model.LogintoServiceReply
- Model.LogintoServiceRequest
- Model.MessageInfo
- Model.ProcessInviteReply
- Model.ProcessInviteRequest
- Model.ProfileInfo
- Model.RemoveMemberFromTopicReply
- Model.RemoveMemberFromTopicRequest
- Model.RemoveMemberReply
- Model.RemoveMemberRequest =======
- Model.MessageInfo
- Model.ProfileInfo
- Model.RemoveMemberFromTopicReply
- Model.RemoveMemberFromTopicRequest
Stashed changes
- Model.RenameFileReply
- Model.RenameFileRequest
- Model.ReturnStatus
- Model.RevokeDeviceReply
- Model.RevokeDeviceRequest
- Model.RevokeInviteReply
- Model.RevokeInviteRequest <<<<<<< Updated upstream
- Model.SecureContentsReply
- Model.SecureContentsRequest
- Model.SecureFileReply
- Model.SecureFileRequest
- Model.ServiceStatusReply
- Model.ServiceStatusRequest
- Model.SetUserIdReply
- Model.SetUserIdRequest
- Model.SignDataWithCircleKeyReply
- Model.SignDataWithCircleKeyRequest
- Model.SignDataWithUserKeyReply
- Model.SignDataWithUserKeyRequest
- Model.StoreTokenReply
- Model.StoreTokenRequest
- Model.TopicInfo
- Model.UnlockUserReply
- Model.UnlockUserRequest
- Model.UpdateTopicReply
- Model.UpdateTopicRequest
- Model.UploadFileReply
- Model.UploadFileRequest =======
- Model.TopicInfo
Stashed changes
Documentation for Authorization
All endpoints do not require authorization.