merge_ticketing_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE.md +16 -0
- data/README.md +208 -0
- data/Rakefile +10 -0
- data/docs/Account.md +28 -0
- data/docs/AccountDetails.md +36 -0
- data/docs/AccountDetailsAndActions.md +36 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +79 -0
- data/docs/AccountIntegration.md +28 -0
- data/docs/AccountToken.md +20 -0
- data/docs/AccountTokenApi.md +79 -0
- data/docs/AccountsApi.md +177 -0
- data/docs/Attachment.md +36 -0
- data/docs/AttachmentRequest.md +30 -0
- data/docs/AttachmentsApi.md +335 -0
- data/docs/AvailableActions.md +22 -0
- data/docs/AvailableActionsApi.md +79 -0
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/Comment.md +38 -0
- data/docs/CommentEndpointRequest.md +18 -0
- data/docs/CommentRequest.md +32 -0
- data/docs/CommentResponse.md +24 -0
- data/docs/CommentsApi.md +335 -0
- data/docs/Contact.md +34 -0
- data/docs/ContactsApi.md +181 -0
- data/docs/DataPassthroughRequest.md +32 -0
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +30 -0
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +79 -0
- data/docs/GenerateRemoteKeyRequest.md +18 -0
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +177 -0
- data/docs/LinkToken.md +22 -0
- data/docs/LinkTokenApi.md +79 -0
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +105 -0
- data/docs/MetaResponse.md +24 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/ModelOperation.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedAccountList.md +22 -0
- data/docs/PaginatedAttachmentList.md +22 -0
- data/docs/PaginatedCommentList.md +22 -0
- data/docs/PaginatedContactList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedProjectList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +22 -0
- data/docs/PaginatedTagList.md +22 -0
- data/docs/PaginatedTeamList.md +22 -0
- data/docs/PaginatedTicketList.md +22 -0
- data/docs/PaginatedUserList.md +22 -0
- data/docs/PassthroughApi.md +81 -0
- data/docs/Project.md +28 -0
- data/docs/ProjectsApi.md +261 -0
- data/docs/RegenerateKeyApi.md +79 -0
- data/docs/RemoteData.md +20 -0
- data/docs/RemoteKey.md +20 -0
- data/docs/RemoteKeyForRegenerationRequest.md +18 -0
- data/docs/RemoteResponse.md +28 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatus.md +28 -0
- data/docs/SyncStatusApi.md +85 -0
- data/docs/SyncStatusStatusEnum.md +15 -0
- data/docs/Tag.md +24 -0
- data/docs/TagsApi.md +177 -0
- data/docs/Team.md +28 -0
- data/docs/TeamsApi.md +177 -0
- data/docs/Ticket.md +52 -0
- data/docs/TicketEndpointRequest.md +18 -0
- data/docs/TicketRequest.md +46 -0
- data/docs/TicketResponse.md +24 -0
- data/docs/TicketStatusEnum.md +15 -0
- data/docs/TicketingAttachmentEndpointRequest.md +18 -0
- data/docs/TicketingAttachmentResponse.md +24 -0
- data/docs/TicketsApi.md +425 -0
- data/docs/User.md +32 -0
- data/docs/UsersApi.md +181 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/git_push.sh +58 -0
- data/lib/merge_ticketing_client/api/account_details_api.rb +84 -0
- data/lib/merge_ticketing_client/api/account_token_api.rb +83 -0
- data/lib/merge_ticketing_client/api/accounts_api.rb +182 -0
- data/lib/merge_ticketing_client/api/attachments_api.rb +337 -0
- data/lib/merge_ticketing_client/api/available_actions_api.rb +84 -0
- data/lib/merge_ticketing_client/api/comments_api.rb +337 -0
- data/lib/merge_ticketing_client/api/contacts_api.rb +196 -0
- data/lib/merge_ticketing_client/api/delete_account_api.rb +82 -0
- data/lib/merge_ticketing_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ticketing_client/api/generate_key_api.rb +85 -0
- data/lib/merge_ticketing_client/api/issues_api.rb +181 -0
- data/lib/merge_ticketing_client/api/link_token_api.rb +85 -0
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +120 -0
- data/lib/merge_ticketing_client/api/passthrough_api.rb +92 -0
- data/lib/merge_ticketing_client/api/projects_api.rb +266 -0
- data/lib/merge_ticketing_client/api/regenerate_key_api.rb +85 -0
- data/lib/merge_ticketing_client/api/sync_status_api.rb +90 -0
- data/lib/merge_ticketing_client/api/tags_api.rb +182 -0
- data/lib/merge_ticketing_client/api/teams_api.rb +182 -0
- data/lib/merge_ticketing_client/api/tickets_api.rb +438 -0
- data/lib/merge_ticketing_client/api/users_api.rb +196 -0
- data/lib/merge_ticketing_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ticketing_client/api_client.rb +390 -0
- data/lib/merge_ticketing_client/api_error.rb +57 -0
- data/lib/merge_ticketing_client/configuration.rb +281 -0
- data/lib/merge_ticketing_client/models/account.rb +276 -0
- data/lib/merge_ticketing_client/models/account_details.rb +302 -0
- data/lib/merge_ticketing_client/models/account_details_and_actions.rb +327 -0
- data/lib/merge_ticketing_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/account_integration.rb +303 -0
- data/lib/merge_ticketing_client/models/account_token.rb +237 -0
- data/lib/merge_ticketing_client/models/attachment.rb +315 -0
- data/lib/merge_ticketing_client/models/attachment_request.rb +285 -0
- data/lib/merge_ticketing_client/models/available_actions.rb +249 -0
- data/lib/merge_ticketing_client/models/categories_enum.rb +48 -0
- data/lib/merge_ticketing_client/models/category_enum.rb +48 -0
- data/lib/merge_ticketing_client/models/comment.rb +325 -0
- data/lib/merge_ticketing_client/models/comment_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/comment_request.rb +295 -0
- data/lib/merge_ticketing_client/models/comment_response.rb +266 -0
- data/lib/merge_ticketing_client/models/contact.rb +307 -0
- data/lib/merge_ticketing_client/models/data_passthrough_request.rb +352 -0
- data/lib/merge_ticketing_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ticketing_client/models/debug_model_log_summary.rb +251 -0
- data/lib/merge_ticketing_client/models/encoding_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +430 -0
- data/lib/merge_ticketing_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ticketing_client/models/generate_remote_key_request.rb +243 -0
- data/lib/merge_ticketing_client/models/issue.rb +281 -0
- data/lib/merge_ticketing_client/models/issue_status_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/link_token.rb +246 -0
- data/lib/merge_ticketing_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ticketing_client/models/meta_response.rb +262 -0
- data/lib/merge_ticketing_client/models/method_enum.rb +50 -0
- data/lib/merge_ticketing_client/models/model_operation.rb +272 -0
- data/lib/merge_ticketing_client/models/multipart_form_field_request.rb +341 -0
- data/lib/merge_ticketing_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_account_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_attachment_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_comment_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_contact_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_project_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_sync_status_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_tag_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_team_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_ticket_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_user_list.rb +240 -0
- data/lib/merge_ticketing_client/models/project.rb +274 -0
- data/lib/merge_ticketing_client/models/remote_data.rb +234 -0
- data/lib/merge_ticketing_client/models/remote_key.rb +238 -0
- data/lib/merge_ticketing_client/models/remote_key_for_regeneration_request.rb +243 -0
- data/lib/merge_ticketing_client/models/remote_response.rb +290 -0
- data/lib/merge_ticketing_client/models/request_format_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/sync_status.rb +294 -0
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +48 -0
- data/lib/merge_ticketing_client/models/tag.rb +254 -0
- data/lib/merge_ticketing_client/models/team.rb +274 -0
- data/lib/merge_ticketing_client/models/ticket.rb +401 -0
- data/lib/merge_ticketing_client/models/ticket_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/ticket_request.rb +371 -0
- data/lib/merge_ticketing_client/models/ticket_response.rb +266 -0
- data/lib/merge_ticketing_client/models/ticket_status_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/ticketing_attachment_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/ticketing_attachment_response.rb +266 -0
- data/lib/merge_ticketing_client/models/user.rb +296 -0
- data/lib/merge_ticketing_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_ticketing_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ticketing_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ticketing_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_ticketing_client/version.rb +15 -0
- data/lib/merge_ticketing_client.rb +127 -0
- data/merge_ticketing_client.gemspec +38 -0
- data/pull_request_template.md +20 -0
- data/spec/api/account_details_api_spec.rb +46 -0
- data/spec/api/account_token_api_spec.rb +46 -0
- data/spec/api/accounts_api_spec.rb +68 -0
- data/spec/api/attachments_api_spec.rb +96 -0
- data/spec/api/available_actions_api_spec.rb +46 -0
- data/spec/api/comments_api_spec.rb +96 -0
- data/spec/api/contacts_api_spec.rb +70 -0
- data/spec/api/delete_account_api_spec.rb +46 -0
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/generate_key_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +69 -0
- data/spec/api/link_token_api_spec.rb +46 -0
- data/spec/api/linked_accounts_api_spec.rb +58 -0
- data/spec/api/passthrough_api_spec.rb +47 -0
- data/spec/api/projects_api_spec.rb +84 -0
- data/spec/api/regenerate_key_api_spec.rb +46 -0
- data/spec/api/sync_status_api_spec.rb +48 -0
- data/spec/api/tags_api_spec.rb +68 -0
- data/spec/api/teams_api_spec.rb +68 -0
- data/spec/api/tickets_api_spec.rb +115 -0
- data/spec/api/users_api_spec.rb +70 -0
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +88 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/account_details_spec.rb +88 -0
- data/spec/models/account_integration_spec.rb +64 -0
- data/spec/models/account_spec.rb +64 -0
- data/spec/models/account_token_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +70 -0
- data/spec/models/attachment_spec.rb +88 -0
- data/spec/models/available_actions_spec.rb +46 -0
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/comment_endpoint_request_spec.rb +34 -0
- data/spec/models/comment_request_spec.rb +76 -0
- data/spec/models/comment_response_spec.rb +52 -0
- data/spec/models/comment_spec.rb +94 -0
- data/spec/models/contact_spec.rb +82 -0
- data/spec/models/data_passthrough_request_spec.rb +76 -0
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +70 -0
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/generate_remote_key_request_spec.rb +34 -0
- data/spec/models/issue_spec.rb +70 -0
- data/spec/models/issue_status_enum_spec.rb +28 -0
- data/spec/models/link_token_spec.rb +46 -0
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +28 -0
- data/spec/models/model_operation_spec.rb +52 -0
- data/spec/models/multipart_form_field_request_spec.rb +58 -0
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_account_list_spec.rb +46 -0
- data/spec/models/paginated_attachment_list_spec.rb +46 -0
- data/spec/models/paginated_comment_list_spec.rb +46 -0
- data/spec/models/paginated_contact_list_spec.rb +46 -0
- data/spec/models/paginated_issue_list_spec.rb +46 -0
- data/spec/models/paginated_project_list_spec.rb +46 -0
- data/spec/models/paginated_sync_status_list_spec.rb +46 -0
- data/spec/models/paginated_tag_list_spec.rb +46 -0
- data/spec/models/paginated_team_list_spec.rb +46 -0
- data/spec/models/paginated_ticket_list_spec.rb +46 -0
- data/spec/models/paginated_user_list_spec.rb +46 -0
- data/spec/models/project_spec.rb +64 -0
- data/spec/models/remote_data_spec.rb +40 -0
- data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
- data/spec/models/remote_key_spec.rb +40 -0
- data/spec/models/remote_response_spec.rb +64 -0
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +64 -0
- data/spec/models/sync_status_status_enum_spec.rb +28 -0
- data/spec/models/tag_spec.rb +52 -0
- data/spec/models/team_spec.rb +64 -0
- data/spec/models/ticket_endpoint_request_spec.rb +34 -0
- data/spec/models/ticket_request_spec.rb +118 -0
- data/spec/models/ticket_response_spec.rb +52 -0
- data/spec/models/ticket_spec.rb +136 -0
- data/spec/models/ticket_status_enum_spec.rb +28 -0
- data/spec/models/ticketing_attachment_endpoint_request_spec.rb +34 -0
- data/spec/models/ticketing_attachment_response_spec.rb +52 -0
- data/spec/models/user_spec.rb +76 -0
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- data/spec/spec_helper.rb +111 -0
- metadata +454 -0
data/docs/TicketsApi.md
ADDED
@@ -0,0 +1,425 @@
|
|
1
|
+
# MergeTicketingClient::TicketsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**tickets_collaborators_list**](TicketsApi.md#tickets_collaborators_list) | **GET** /tickets/{id}/collaborators | |
|
8
|
+
| [**tickets_create**](TicketsApi.md#tickets_create) | **POST** /tickets | |
|
9
|
+
| [**tickets_list**](TicketsApi.md#tickets_list) | **GET** /tickets | |
|
10
|
+
| [**tickets_meta_post_retrieve**](TicketsApi.md#tickets_meta_post_retrieve) | **GET** /tickets/meta/post | |
|
11
|
+
| [**tickets_retrieve**](TicketsApi.md#tickets_retrieve) | **GET** /tickets/{id} | |
|
12
|
+
|
13
|
+
|
14
|
+
## tickets_collaborators_list
|
15
|
+
|
16
|
+
> <PaginatedUserList> tickets_collaborators_list(x_account_token, id, opts)
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
Returns a `User` object with the given `id`.
|
21
|
+
|
22
|
+
### Examples
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'time'
|
26
|
+
require 'merge_ticketing_client'
|
27
|
+
# setup authorization
|
28
|
+
MergeTicketingClient.configure do |config|
|
29
|
+
# Configure API key authorization: tokenAuth
|
30
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = MergeTicketingClient::TicketsApi.new
|
36
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
37
|
+
id = TODO # String |
|
38
|
+
opts = {
|
39
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
40
|
+
expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
41
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
42
|
+
page_size: 56 # Integer | Number of results to return per page.
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
|
47
|
+
result = api_instance.tickets_collaborators_list(x_account_token, id, opts)
|
48
|
+
p result
|
49
|
+
rescue MergeTicketingClient::ApiError => e
|
50
|
+
puts "Error when calling TicketsApi->tickets_collaborators_list: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
#### Using the tickets_collaborators_list_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<PaginatedUserList>, Integer, Hash)> tickets_collaborators_list_with_http_info(x_account_token, id, opts)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
|
63
|
+
data, status_code, headers = api_instance.tickets_collaborators_list_with_http_info(x_account_token, id, opts)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <PaginatedUserList>
|
67
|
+
rescue MergeTicketingClient::ApiError => e
|
68
|
+
puts "Error when calling TicketsApi->tickets_collaborators_list_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
71
|
+
|
72
|
+
### Parameters
|
73
|
+
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
77
|
+
| **id** | [**String**](.md) | | |
|
78
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
79
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
80
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
81
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
82
|
+
|
83
|
+
### Return type
|
84
|
+
|
85
|
+
[**PaginatedUserList**](PaginatedUserList.md)
|
86
|
+
|
87
|
+
### Authorization
|
88
|
+
|
89
|
+
[tokenAuth](../README.md#tokenAuth)
|
90
|
+
|
91
|
+
### HTTP request headers
|
92
|
+
|
93
|
+
- **Content-Type**: Not defined
|
94
|
+
- **Accept**: application/json
|
95
|
+
|
96
|
+
|
97
|
+
## tickets_create
|
98
|
+
|
99
|
+
> <TicketResponse> tickets_create(x_account_token, ticket_endpoint_request, opts)
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
Creates a `Ticket` object with the given values.
|
104
|
+
|
105
|
+
### Examples
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
require 'time'
|
109
|
+
require 'merge_ticketing_client'
|
110
|
+
# setup authorization
|
111
|
+
MergeTicketingClient.configure do |config|
|
112
|
+
# Configure API key authorization: tokenAuth
|
113
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
114
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
115
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
116
|
+
end
|
117
|
+
|
118
|
+
api_instance = MergeTicketingClient::TicketsApi.new
|
119
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
120
|
+
ticket_endpoint_request = MergeTicketingClient::TicketEndpointRequest.new({model: MergeTicketingClient::TicketRequest.new}) # TicketEndpointRequest |
|
121
|
+
opts = {
|
122
|
+
is_debug_mode: true, # Boolean | Whether to include debug fields (such as log file links) in the response.
|
123
|
+
run_async: true # Boolean | Whether or not third-party updates should be run asynchronously.
|
124
|
+
}
|
125
|
+
|
126
|
+
begin
|
127
|
+
|
128
|
+
result = api_instance.tickets_create(x_account_token, ticket_endpoint_request, opts)
|
129
|
+
p result
|
130
|
+
rescue MergeTicketingClient::ApiError => e
|
131
|
+
puts "Error when calling TicketsApi->tickets_create: #{e}"
|
132
|
+
end
|
133
|
+
```
|
134
|
+
|
135
|
+
#### Using the tickets_create_with_http_info variant
|
136
|
+
|
137
|
+
This returns an Array which contains the response data, status code and headers.
|
138
|
+
|
139
|
+
> <Array(<TicketResponse>, Integer, Hash)> tickets_create_with_http_info(x_account_token, ticket_endpoint_request, opts)
|
140
|
+
|
141
|
+
```ruby
|
142
|
+
begin
|
143
|
+
|
144
|
+
data, status_code, headers = api_instance.tickets_create_with_http_info(x_account_token, ticket_endpoint_request, opts)
|
145
|
+
p status_code # => 2xx
|
146
|
+
p headers # => { ... }
|
147
|
+
p data # => <TicketResponse>
|
148
|
+
rescue MergeTicketingClient::ApiError => e
|
149
|
+
puts "Error when calling TicketsApi->tickets_create_with_http_info: #{e}"
|
150
|
+
end
|
151
|
+
```
|
152
|
+
|
153
|
+
### Parameters
|
154
|
+
|
155
|
+
| Name | Type | Description | Notes |
|
156
|
+
| ---- | ---- | ----------- | ----- |
|
157
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
158
|
+
| **ticket_endpoint_request** | [**TicketEndpointRequest**](TicketEndpointRequest.md) | | |
|
159
|
+
| **is_debug_mode** | **Boolean** | Whether to include debug fields (such as log file links) in the response. | [optional] |
|
160
|
+
| **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
|
161
|
+
|
162
|
+
### Return type
|
163
|
+
|
164
|
+
[**TicketResponse**](TicketResponse.md)
|
165
|
+
|
166
|
+
### Authorization
|
167
|
+
|
168
|
+
[tokenAuth](../README.md#tokenAuth)
|
169
|
+
|
170
|
+
### HTTP request headers
|
171
|
+
|
172
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
173
|
+
- **Accept**: application/json
|
174
|
+
|
175
|
+
|
176
|
+
## tickets_list
|
177
|
+
|
178
|
+
> <PaginatedTicketList> tickets_list(x_account_token, opts)
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
Returns a list of `Ticket` objects.
|
183
|
+
|
184
|
+
### Examples
|
185
|
+
|
186
|
+
```ruby
|
187
|
+
require 'time'
|
188
|
+
require 'merge_ticketing_client'
|
189
|
+
# setup authorization
|
190
|
+
MergeTicketingClient.configure do |config|
|
191
|
+
# Configure API key authorization: tokenAuth
|
192
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
193
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
194
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
195
|
+
end
|
196
|
+
|
197
|
+
api_instance = MergeTicketingClient::TicketsApi.new
|
198
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
199
|
+
opts = {
|
200
|
+
account_id: 'account_id_example', # String | If provided, will only return tickets for this account.
|
201
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
202
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
203
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
204
|
+
expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
205
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
206
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
207
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
208
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
209
|
+
page_size: 56, # Integer | Number of results to return per page.
|
210
|
+
project_id: 'project_id_example', # String | If provided, will only return tickets for this project.
|
211
|
+
remote_fields: 'status', # String | Which fields should be returned in non-normalized form.
|
212
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
213
|
+
}
|
214
|
+
|
215
|
+
begin
|
216
|
+
|
217
|
+
result = api_instance.tickets_list(x_account_token, opts)
|
218
|
+
p result
|
219
|
+
rescue MergeTicketingClient::ApiError => e
|
220
|
+
puts "Error when calling TicketsApi->tickets_list: #{e}"
|
221
|
+
end
|
222
|
+
```
|
223
|
+
|
224
|
+
#### Using the tickets_list_with_http_info variant
|
225
|
+
|
226
|
+
This returns an Array which contains the response data, status code and headers.
|
227
|
+
|
228
|
+
> <Array(<PaginatedTicketList>, Integer, Hash)> tickets_list_with_http_info(x_account_token, opts)
|
229
|
+
|
230
|
+
```ruby
|
231
|
+
begin
|
232
|
+
|
233
|
+
data, status_code, headers = api_instance.tickets_list_with_http_info(x_account_token, opts)
|
234
|
+
p status_code # => 2xx
|
235
|
+
p headers # => { ... }
|
236
|
+
p data # => <PaginatedTicketList>
|
237
|
+
rescue MergeTicketingClient::ApiError => e
|
238
|
+
puts "Error when calling TicketsApi->tickets_list_with_http_info: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
### Parameters
|
243
|
+
|
244
|
+
| Name | Type | Description | Notes |
|
245
|
+
| ---- | ---- | ----------- | ----- |
|
246
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
247
|
+
| **account_id** | **String** | If provided, will only return tickets for this account. | [optional] |
|
248
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
249
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
250
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
251
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
252
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
253
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
254
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
255
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
256
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
257
|
+
| **project_id** | **String** | If provided, will only return tickets for this project. | [optional] |
|
258
|
+
| **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
259
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
260
|
+
|
261
|
+
### Return type
|
262
|
+
|
263
|
+
[**PaginatedTicketList**](PaginatedTicketList.md)
|
264
|
+
|
265
|
+
### Authorization
|
266
|
+
|
267
|
+
[tokenAuth](../README.md#tokenAuth)
|
268
|
+
|
269
|
+
### HTTP request headers
|
270
|
+
|
271
|
+
- **Content-Type**: Not defined
|
272
|
+
- **Accept**: application/json
|
273
|
+
|
274
|
+
|
275
|
+
## tickets_meta_post_retrieve
|
276
|
+
|
277
|
+
> <MetaResponse> tickets_meta_post_retrieve(x_account_token)
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
Returns metadata for `Ticket` POSTs.
|
282
|
+
|
283
|
+
### Examples
|
284
|
+
|
285
|
+
```ruby
|
286
|
+
require 'time'
|
287
|
+
require 'merge_ticketing_client'
|
288
|
+
# setup authorization
|
289
|
+
MergeTicketingClient.configure do |config|
|
290
|
+
# Configure API key authorization: tokenAuth
|
291
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
292
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
293
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
294
|
+
end
|
295
|
+
|
296
|
+
api_instance = MergeTicketingClient::TicketsApi.new
|
297
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
298
|
+
|
299
|
+
begin
|
300
|
+
|
301
|
+
result = api_instance.tickets_meta_post_retrieve(x_account_token)
|
302
|
+
p result
|
303
|
+
rescue MergeTicketingClient::ApiError => e
|
304
|
+
puts "Error when calling TicketsApi->tickets_meta_post_retrieve: #{e}"
|
305
|
+
end
|
306
|
+
```
|
307
|
+
|
308
|
+
#### Using the tickets_meta_post_retrieve_with_http_info variant
|
309
|
+
|
310
|
+
This returns an Array which contains the response data, status code and headers.
|
311
|
+
|
312
|
+
> <Array(<MetaResponse>, Integer, Hash)> tickets_meta_post_retrieve_with_http_info(x_account_token)
|
313
|
+
|
314
|
+
```ruby
|
315
|
+
begin
|
316
|
+
|
317
|
+
data, status_code, headers = api_instance.tickets_meta_post_retrieve_with_http_info(x_account_token)
|
318
|
+
p status_code # => 2xx
|
319
|
+
p headers # => { ... }
|
320
|
+
p data # => <MetaResponse>
|
321
|
+
rescue MergeTicketingClient::ApiError => e
|
322
|
+
puts "Error when calling TicketsApi->tickets_meta_post_retrieve_with_http_info: #{e}"
|
323
|
+
end
|
324
|
+
```
|
325
|
+
|
326
|
+
### Parameters
|
327
|
+
|
328
|
+
| Name | Type | Description | Notes |
|
329
|
+
| ---- | ---- | ----------- | ----- |
|
330
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
331
|
+
|
332
|
+
### Return type
|
333
|
+
|
334
|
+
[**MetaResponse**](MetaResponse.md)
|
335
|
+
|
336
|
+
### Authorization
|
337
|
+
|
338
|
+
[tokenAuth](../README.md#tokenAuth)
|
339
|
+
|
340
|
+
### HTTP request headers
|
341
|
+
|
342
|
+
- **Content-Type**: Not defined
|
343
|
+
- **Accept**: application/json
|
344
|
+
|
345
|
+
|
346
|
+
## tickets_retrieve
|
347
|
+
|
348
|
+
> <Ticket> tickets_retrieve(x_account_token, id, opts)
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
Returns a `Ticket` object with the given `id`.
|
353
|
+
|
354
|
+
### Examples
|
355
|
+
|
356
|
+
```ruby
|
357
|
+
require 'time'
|
358
|
+
require 'merge_ticketing_client'
|
359
|
+
# setup authorization
|
360
|
+
MergeTicketingClient.configure do |config|
|
361
|
+
# Configure API key authorization: tokenAuth
|
362
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
363
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
364
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
365
|
+
end
|
366
|
+
|
367
|
+
api_instance = MergeTicketingClient::TicketsApi.new
|
368
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
369
|
+
id = TODO # String |
|
370
|
+
opts = {
|
371
|
+
expand: 'account', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
372
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
373
|
+
remote_fields: 'status' # String | Which fields should be returned in non-normalized form.
|
374
|
+
}
|
375
|
+
|
376
|
+
begin
|
377
|
+
|
378
|
+
result = api_instance.tickets_retrieve(x_account_token, id, opts)
|
379
|
+
p result
|
380
|
+
rescue MergeTicketingClient::ApiError => e
|
381
|
+
puts "Error when calling TicketsApi->tickets_retrieve: #{e}"
|
382
|
+
end
|
383
|
+
```
|
384
|
+
|
385
|
+
#### Using the tickets_retrieve_with_http_info variant
|
386
|
+
|
387
|
+
This returns an Array which contains the response data, status code and headers.
|
388
|
+
|
389
|
+
> <Array(<Ticket>, Integer, Hash)> tickets_retrieve_with_http_info(x_account_token, id, opts)
|
390
|
+
|
391
|
+
```ruby
|
392
|
+
begin
|
393
|
+
|
394
|
+
data, status_code, headers = api_instance.tickets_retrieve_with_http_info(x_account_token, id, opts)
|
395
|
+
p status_code # => 2xx
|
396
|
+
p headers # => { ... }
|
397
|
+
p data # => <Ticket>
|
398
|
+
rescue MergeTicketingClient::ApiError => e
|
399
|
+
puts "Error when calling TicketsApi->tickets_retrieve_with_http_info: #{e}"
|
400
|
+
end
|
401
|
+
```
|
402
|
+
|
403
|
+
### Parameters
|
404
|
+
|
405
|
+
| Name | Type | Description | Notes |
|
406
|
+
| ---- | ---- | ----------- | ----- |
|
407
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
408
|
+
| **id** | [**String**](.md) | | |
|
409
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
410
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
411
|
+
| **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
412
|
+
|
413
|
+
### Return type
|
414
|
+
|
415
|
+
[**Ticket**](Ticket.md)
|
416
|
+
|
417
|
+
### Authorization
|
418
|
+
|
419
|
+
[tokenAuth](../README.md#tokenAuth)
|
420
|
+
|
421
|
+
### HTTP request headers
|
422
|
+
|
423
|
+
- **Content-Type**: Not defined
|
424
|
+
- **Accept**: application/json
|
425
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# MergeTicketingClient::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional][readonly] |
|
8
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
|
+
| **name** | **String** | The user's name. | [optional] |
|
10
|
+
| **email_address** | **String** | The user's email address. | [optional] |
|
11
|
+
| **is_active** | **Boolean** | Whether or not the user is active. | [optional] |
|
12
|
+
| **teams** | **Array<String>** | | [optional] |
|
13
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
14
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'merge_ticketing_client'
|
20
|
+
|
21
|
+
instance = MergeTicketingClient::User.new(
|
22
|
+
id: 17a54124-287f-494d-965e-3c5b330c9a68,
|
23
|
+
remote_id: 19202938,
|
24
|
+
name: Gil Feig,
|
25
|
+
email_address: help@merge.dev,
|
26
|
+
is_active: true,
|
27
|
+
teams: ["28b54125-287f-494d-965e-3c5b330c9a68","17a54124-287f-494d-965e-3c5b330c9a68"],
|
28
|
+
remote_data: null,
|
29
|
+
remote_was_deleted: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/UsersApi.md
ADDED
@@ -0,0 +1,181 @@
|
|
1
|
+
# MergeTicketingClient::UsersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ticketing/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**users_list**](UsersApi.md#users_list) | **GET** /users | |
|
8
|
+
| [**users_retrieve**](UsersApi.md#users_retrieve) | **GET** /users/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## users_list
|
12
|
+
|
13
|
+
> <PaginatedUserList> users_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `User` objects.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'merge_ticketing_client'
|
24
|
+
# setup authorization
|
25
|
+
MergeTicketingClient.configure do |config|
|
26
|
+
# Configure API key authorization: tokenAuth
|
27
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = MergeTicketingClient::UsersApi.new
|
33
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
34
|
+
opts = {
|
35
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
36
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
37
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
|
+
expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
39
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
40
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
42
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
43
|
+
page_size: 56, # Integer | Number of results to return per page.
|
44
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
45
|
+
}
|
46
|
+
|
47
|
+
begin
|
48
|
+
|
49
|
+
result = api_instance.users_list(x_account_token, opts)
|
50
|
+
p result
|
51
|
+
rescue MergeTicketingClient::ApiError => e
|
52
|
+
puts "Error when calling UsersApi->users_list: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the users_list_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<PaginatedUserList>, Integer, Hash)> users_list_with_http_info(x_account_token, opts)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
|
65
|
+
data, status_code, headers = api_instance.users_list_with_http_info(x_account_token, opts)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <PaginatedUserList>
|
69
|
+
rescue MergeTicketingClient::ApiError => e
|
70
|
+
puts "Error when calling UsersApi->users_list_with_http_info: #{e}"
|
71
|
+
end
|
72
|
+
```
|
73
|
+
|
74
|
+
### Parameters
|
75
|
+
|
76
|
+
| Name | Type | Description | Notes |
|
77
|
+
| ---- | ---- | ----------- | ----- |
|
78
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
79
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
80
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
81
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
82
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
83
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
84
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
85
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
86
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
87
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
88
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
89
|
+
|
90
|
+
### Return type
|
91
|
+
|
92
|
+
[**PaginatedUserList**](PaginatedUserList.md)
|
93
|
+
|
94
|
+
### Authorization
|
95
|
+
|
96
|
+
[tokenAuth](../README.md#tokenAuth)
|
97
|
+
|
98
|
+
### HTTP request headers
|
99
|
+
|
100
|
+
- **Content-Type**: Not defined
|
101
|
+
- **Accept**: application/json
|
102
|
+
|
103
|
+
|
104
|
+
## users_retrieve
|
105
|
+
|
106
|
+
> <User> users_retrieve(x_account_token, id, opts)
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
Returns a `User` object with the given `id`.
|
111
|
+
|
112
|
+
### Examples
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
require 'time'
|
116
|
+
require 'merge_ticketing_client'
|
117
|
+
# setup authorization
|
118
|
+
MergeTicketingClient.configure do |config|
|
119
|
+
# Configure API key authorization: tokenAuth
|
120
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
121
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
122
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
123
|
+
end
|
124
|
+
|
125
|
+
api_instance = MergeTicketingClient::UsersApi.new
|
126
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
127
|
+
id = TODO # String |
|
128
|
+
opts = {
|
129
|
+
expand: 'teams', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
130
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
131
|
+
}
|
132
|
+
|
133
|
+
begin
|
134
|
+
|
135
|
+
result = api_instance.users_retrieve(x_account_token, id, opts)
|
136
|
+
p result
|
137
|
+
rescue MergeTicketingClient::ApiError => e
|
138
|
+
puts "Error when calling UsersApi->users_retrieve: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
#### Using the users_retrieve_with_http_info variant
|
143
|
+
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
145
|
+
|
146
|
+
> <Array(<User>, Integer, Hash)> users_retrieve_with_http_info(x_account_token, id, opts)
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
begin
|
150
|
+
|
151
|
+
data, status_code, headers = api_instance.users_retrieve_with_http_info(x_account_token, id, opts)
|
152
|
+
p status_code # => 2xx
|
153
|
+
p headers # => { ... }
|
154
|
+
p data # => <User>
|
155
|
+
rescue MergeTicketingClient::ApiError => e
|
156
|
+
puts "Error when calling UsersApi->users_retrieve_with_http_info: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
|
162
|
+
| Name | Type | Description | Notes |
|
163
|
+
| ---- | ---- | ----------- | ----- |
|
164
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
165
|
+
| **id** | [**String**](.md) | | |
|
166
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
167
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**User**](User.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[tokenAuth](../README.md#tokenAuth)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: Not defined
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MergeTicketingClient::ValidationProblemSource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **pointer** | **String** | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'merge_ticketing_client'
|
13
|
+
|
14
|
+
instance = MergeTicketingClient::ValidationProblemSource.new(
|
15
|
+
pointer: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# MergeTicketingClient::WarningValidationProblem
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source** | [**ValidationProblemSource**](ValidationProblemSource.md) | | [optional] |
|
8
|
+
| **title** | **String** | | |
|
9
|
+
| **detail** | **String** | | |
|
10
|
+
| **problem_type** | **String** | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'merge_ticketing_client'
|
16
|
+
|
17
|
+
instance = MergeTicketingClient::WarningValidationProblem.new(
|
18
|
+
source: null,
|
19
|
+
title: Unrecognized Field,
|
20
|
+
detail: An unrecognized field, age, was passed in with request data.,
|
21
|
+
problem_type: UNRECOGNIZED_FIELD
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|