All URIs are relative to https://api.egoiapp.com
Method | HTTP request | Description |
---|---|---|
CreateTag | POST /tags | Create new tag |
DeleteTag | DELETE /tags/{tag_id} | Remove tag |
GetAllTags | GET /tags | Get all tags |
UpdateTag | PUT /tags/{tag_id} | Update a specific tag |
Tag CreateTag (TagRequest tagRequest)
Create new tag
Create a new tag
using System.Collections.Generic;
using System.Diagnostics;
using org.egoi.client.api.Api;
using org.egoi.client.api.Client;
using org.egoi.client.api.Model;
namespace Example
{
public class CreateTagExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.egoiapp.com";
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");
var apiInstance = new TagsApi(Configuration.Default);
var tagRequest = new TagRequest(); // TagRequest | Parameters for the Tag
try
{
// Create new tag
Tag result = apiInstance.CreateTag(tagRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling TagsApi.CreateTag: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagRequest | TagRequest | Parameters for the Tag |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteTag (int tagId)
Remove tag
Remove tag information given its ID
using System.Collections.Generic;
using System.Diagnostics;
using org.egoi.client.api.Api;
using org.egoi.client.api.Client;
using org.egoi.client.api.Model;
namespace Example
{
public class DeleteTagExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.egoiapp.com";
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");
var apiInstance = new TagsApi(Configuration.Default);
var tagId = 56; // int | ID of the Tag
try
{
// Remove tag
apiInstance.DeleteTag(tagId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling TagsApi.DeleteTag: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | int | ID of the Tag |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
408 | Request Timeout | - |
409 | Conflict | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TagCollection GetAllTags (int? offset = null, int? limit = null, string order = null, string orderBy = null)
Get all tags
Returns all tags
using System.Collections.Generic;
using System.Diagnostics;
using org.egoi.client.api.Api;
using org.egoi.client.api.Client;
using org.egoi.client.api.Model;
namespace Example
{
public class GetAllTagsExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.egoiapp.com";
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");
var apiInstance = new TagsApi(Configuration.Default);
var offset = 56; // int? | Element offset (starting at zero for the first element) (optional)
var limit = 56; // int? | Number of items to return (optional) (default to 10)
var order = order_example; // string | Type of order (optional) (default to desc)
var orderBy = orderBy_example; // string | Reference attribute to order tags (optional) (default to tag_id)
try
{
// Get all tags
TagCollection result = apiInstance.GetAllTags(offset, limit, order, orderBy);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling TagsApi.GetAllTags: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | int? | Element offset (starting at zero for the first element) | [optional] |
limit | int? | Number of items to return | [optional] [default to 10] |
order | string | Type of order | [optional] [default to desc] |
orderBy | string | Reference attribute to order tags | [optional] [default to tag_id] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag UpdateTag (int tagId, TagRequest tagRequest)
Update a specific tag
Update a tag
using System.Collections.Generic;
using System.Diagnostics;
using org.egoi.client.api.Api;
using org.egoi.client.api.Client;
using org.egoi.client.api.Model;
namespace Example
{
public class UpdateTagExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.egoiapp.com";
// Configure API key authorization: Apikey
Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");
var apiInstance = new TagsApi(Configuration.Default);
var tagId = 56; // int | ID of the Tag
var tagRequest = new TagRequest(); // TagRequest | Parameters for the tag
try
{
// Update a specific tag
Tag result = apiInstance.UpdateTag(tagId, tagRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling TagsApi.UpdateTag: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tagId | int | ID of the Tag | |
tagRequest | TagRequest | Parameters for the tag |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
408 | Request Timeout | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]