merge_ats_client 1.0.1
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/README.md +208 -0
- data/Rakefile +10 -0
- data/config.json +2 -0
- data/docs/AccessRoleEnum.md +15 -0
- data/docs/AccountIntegration.md +28 -0
- data/docs/AccountToken.md +18 -0
- data/docs/AccountTokenApi.md +79 -0
- data/docs/ActivitiesApi.md +181 -0
- data/docs/Activity.md +34 -0
- data/docs/ActivityTypeEnum.md +15 -0
- data/docs/Application.md +38 -0
- data/docs/ApplicationRequest.md +34 -0
- data/docs/ApplicationsApi.md +351 -0
- data/docs/Attachment.md +28 -0
- data/docs/AttachmentsApi.md +177 -0
- data/docs/AvailableActions.md +22 -0
- data/docs/AvailableActionsApi.md +79 -0
- data/docs/Candidate.md +54 -0
- data/docs/CandidateRequest.md +46 -0
- data/docs/CandidatesApi.md +259 -0
- data/docs/DataPassthrough.md +24 -0
- data/docs/DataPassthroughRequest.md +26 -0
- data/docs/Department.md +24 -0
- data/docs/DepartmentsApi.md +175 -0
- data/docs/DisabilityStatusEnum.md +15 -0
- data/docs/EEOC.md +34 -0
- data/docs/EeocsApi.md +181 -0
- data/docs/EmailAddress.md +20 -0
- data/docs/EmailAddressRequest.md +20 -0
- data/docs/EmailAddressTypeEnum.md +15 -0
- data/docs/EndUserDetails.md +24 -0
- data/docs/EndUserDetailsRequest.md +26 -0
- data/docs/GenderEnum.md +15 -0
- data/docs/GenerateKeyApi.md +79 -0
- data/docs/GenerateRemoteKeyRequest.md +18 -0
- data/docs/InterviewsApi.md +185 -0
- data/docs/Job.md +40 -0
- data/docs/JobInterviewStage.md +26 -0
- data/docs/JobInterviewStagesApi.md +181 -0
- data/docs/JobStatusEnum.md +15 -0
- data/docs/JobsApi.md +179 -0
- data/docs/LinkToken.md +20 -0
- data/docs/LinkTokenApi.md +79 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/ModelOperation.md +22 -0
- data/docs/Offer.md +36 -0
- data/docs/OfferStatusEnum.md +15 -0
- data/docs/OffersApi.md +183 -0
- data/docs/Office.md +26 -0
- data/docs/OfficesApi.md +175 -0
- data/docs/OverallRecommendationEnum.md +15 -0
- data/docs/PaginatedActivityList.md +22 -0
- data/docs/PaginatedApplicationList.md +22 -0
- data/docs/PaginatedAttachmentList.md +22 -0
- data/docs/PaginatedCandidateList.md +22 -0
- data/docs/PaginatedDepartmentList.md +22 -0
- data/docs/PaginatedEEOCList.md +22 -0
- data/docs/PaginatedJobInterviewStageList.md +22 -0
- data/docs/PaginatedJobList.md +22 -0
- data/docs/PaginatedOfferList.md +22 -0
- data/docs/PaginatedOfficeList.md +22 -0
- data/docs/PaginatedRejectReasonList.md +22 -0
- data/docs/PaginatedRemoteUserList.md +22 -0
- data/docs/PaginatedScheduledInterviewList.md +22 -0
- data/docs/PaginatedScorecardList.md +22 -0
- data/docs/PaginatedTagList.md +22 -0
- data/docs/PassthroughApi.md +81 -0
- data/docs/PatchedApplicationRequest.md +34 -0
- data/docs/PhoneNumber.md +20 -0
- data/docs/PhoneNumberRequest.md +20 -0
- data/docs/PhoneNumberTypeEnum.md +15 -0
- data/docs/RaceEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +79 -0
- data/docs/RejectReason.md +24 -0
- data/docs/RejectReasonsApi.md +175 -0
- data/docs/RemoteData.md +20 -0
- data/docs/RemoteDataRequest.md +20 -0
- data/docs/RemoteKey.md +20 -0
- data/docs/RemoteKeyForRegeneration.md +18 -0
- data/docs/RemoteKeyForRegenerationRequest.md +18 -0
- data/docs/RemoteResponse.md +26 -0
- data/docs/RemoteUser.md +34 -0
- data/docs/ScheduledInterview.md +42 -0
- data/docs/ScheduledInterviewStatusEnum.md +15 -0
- data/docs/Scorecard.md +34 -0
- data/docs/ScorecardsApi.md +185 -0
- data/docs/SyncStatus.md +28 -0
- data/docs/SyncStatusApi.md +79 -0
- data/docs/Tag.md +22 -0
- data/docs/TagsApi.md +97 -0
- data/docs/Url.md +20 -0
- data/docs/UrlRequest.md +20 -0
- data/docs/UrlTypeEnum.md +15 -0
- data/docs/UsersApi.md +175 -0
- data/docs/VeteranStatusEnum.md +15 -0
- data/docs/VisibilityEnum.md +15 -0
- data/git_push.sh +58 -0
- data/lib/merge_ats_client.rb +131 -0
- data/lib/merge_ats_client/api/account_token_api.rb +83 -0
- data/lib/merge_ats_client/api/activities_api.rb +196 -0
- data/lib/merge_ats_client/api/applications_api.rb +366 -0
- data/lib/merge_ats_client/api/attachments_api.rb +182 -0
- data/lib/merge_ats_client/api/available_actions_api.rb +84 -0
- data/lib/merge_ats_client/api/candidates_api.rb +269 -0
- data/lib/merge_ats_client/api/departments_api.rb +179 -0
- data/lib/merge_ats_client/api/eeocs_api.rb +196 -0
- data/lib/merge_ats_client/api/generate_key_api.rb +85 -0
- data/lib/merge_ats_client/api/interviews_api.rb +202 -0
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +196 -0
- data/lib/merge_ats_client/api/jobs_api.rb +193 -0
- data/lib/merge_ats_client/api/link_token_api.rb +85 -0
- data/lib/merge_ats_client/api/offers_api.rb +199 -0
- data/lib/merge_ats_client/api/offices_api.rb +179 -0
- data/lib/merge_ats_client/api/passthrough_api.rb +92 -0
- data/lib/merge_ats_client/api/regenerate_key_api.rb +85 -0
- data/lib/merge_ats_client/api/reject_reasons_api.rb +179 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +202 -0
- data/lib/merge_ats_client/api/sync_status_api.rb +84 -0
- data/lib/merge_ats_client/api/tags_api.rb +108 -0
- data/lib/merge_ats_client/api/users_api.rb +179 -0
- data/lib/merge_ats_client/api_client.rb +390 -0
- data/lib/merge_ats_client/api_error.rb +57 -0
- data/lib/merge_ats_client/configuration.rb +279 -0
- data/lib/merge_ats_client/models/access_role_enum.rb +38 -0
- data/lib/merge_ats_client/models/account_integration.rb +325 -0
- data/lib/merge_ats_client/models/account_token.rb +223 -0
- data/lib/merge_ats_client/models/activity.rb +308 -0
- data/lib/merge_ats_client/models/activity_type_enum.rb +36 -0
- data/lib/merge_ats_client/models/application.rb +330 -0
- data/lib/merge_ats_client/models/application_request.rb +309 -0
- data/lib/merge_ats_client/models/attachment.rb +289 -0
- data/lib/merge_ats_client/models/available_actions.rb +249 -0
- data/lib/merge_ats_client/models/candidate.rb +420 -0
- data/lib/merge_ats_client/models/candidate_request.rb +377 -0
- data/lib/merge_ats_client/models/data_passthrough.rb +262 -0
- data/lib/merge_ats_client/models/data_passthrough_request.rb +271 -0
- data/lib/merge_ats_client/models/department.rb +253 -0
- data/lib/merge_ats_client/models/disability_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/eeoc.rb +308 -0
- data/lib/merge_ats_client/models/email_address.rb +247 -0
- data/lib/merge_ats_client/models/email_address_request.rb +247 -0
- data/lib/merge_ats_client/models/email_address_type_enum.rb +36 -0
- data/lib/merge_ats_client/models/end_user_details.rb +289 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +298 -0
- data/lib/merge_ats_client/models/gender_enum.rb +38 -0
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +224 -0
- data/lib/merge_ats_client/models/job.rb +341 -0
- data/lib/merge_ats_client/models/job_interview_stage.rb +264 -0
- data/lib/merge_ats_client/models/job_status_enum.rb +38 -0
- data/lib/merge_ats_client/models/link_token.rb +237 -0
- data/lib/merge_ats_client/models/method_enum.rb +40 -0
- data/lib/merge_ats_client/models/model_operation.rb +256 -0
- data/lib/merge_ats_client/models/offer.rb +319 -0
- data/lib/merge_ats_client/models/offer_status_enum.rb +42 -0
- data/lib/merge_ats_client/models/office.rb +264 -0
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +38 -0
- data/lib/merge_ats_client/models/paginated_activity_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_application_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_department_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_job_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_offer_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_office_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +240 -0
- data/lib/merge_ats_client/models/paginated_tag_list.rb +240 -0
- data/lib/merge_ats_client/models/patched_application_request.rb +309 -0
- data/lib/merge_ats_client/models/phone_number.rb +232 -0
- data/lib/merge_ats_client/models/phone_number_request.rb +232 -0
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +38 -0
- data/lib/merge_ats_client/models/race_enum.rb +41 -0
- data/lib/merge_ats_client/models/reject_reason.rb +253 -0
- data/lib/merge_ats_client/models/remote_data.rb +234 -0
- data/lib/merge_ats_client/models/remote_data_request.rb +234 -0
- data/lib/merge_ats_client/models/remote_key.rb +238 -0
- data/lib/merge_ats_client/models/remote_key_for_regeneration.rb +224 -0
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +224 -0
- data/lib/merge_ats_client/models/remote_response.rb +279 -0
- data/lib/merge_ats_client/models/remote_user.rb +323 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +352 -0
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/scorecard.rb +308 -0
- data/lib/merge_ats_client/models/sync_status.rb +294 -0
- data/lib/merge_ats_client/models/tag.rb +244 -0
- data/lib/merge_ats_client/models/url.rb +247 -0
- data/lib/merge_ats_client/models/url_request.rb +247 -0
- data/lib/merge_ats_client/models/url_type_enum.rb +39 -0
- data/lib/merge_ats_client/models/veteran_status_enum.rb +36 -0
- data/lib/merge_ats_client/models/visibility_enum.rb +36 -0
- data/lib/merge_ats_client/version.rb +15 -0
- data/merge_ats_client-1.0.0.gem +0 -0
- data/merge_ats_client.gemspec +38 -0
- data/pull_request_template.md +22 -0
- data/spec/api/account_token_api_spec.rb +46 -0
- data/spec/api/activities_api_spec.rb +68 -0
- data/spec/api/applications_api_spec.rb +72 -0
- data/spec/api/attachments_api_spec.rb +66 -0
- data/spec/api/available_actions_api_spec.rb +46 -0
- data/spec/api/candidates_api_spec.rb +67 -0
- data/spec/api/departments_api_spec.rb +65 -0
- data/spec/api/eeocs_api_spec.rb +68 -0
- data/spec/api/interviews_api_spec.rb +70 -0
- data/spec/api/job_interview_stages_api_spec.rb +68 -0
- data/spec/api/jobs_api_spec.rb +67 -0
- data/spec/api/link_token_api_spec.rb +46 -0
- data/spec/api/offers_api_spec.rb +69 -0
- data/spec/api/offices_api_spec.rb +65 -0
- data/spec/api/passthrough_api_spec.rb +47 -0
- data/spec/api/regenerate_key_api_spec.rb +48 -0
- data/spec/api/reject_reasons_api_spec.rb +65 -0
- data/spec/api/scorecards_api_spec.rb +70 -0
- data/spec/api/sync_status_api_spec.rb +45 -0
- data/spec/api/tags_api_spec.rb +53 -0
- data/spec/api/users_api_spec.rb +65 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_role_enum_spec.rb +28 -0
- data/spec/models/account_integration_spec.rb +58 -0
- data/spec/models/account_token_spec.rb +34 -0
- data/spec/models/activity_spec.rb +76 -0
- data/spec/models/activity_type_enum_spec.rb +28 -0
- data/spec/models/application_request_spec.rb +82 -0
- data/spec/models/application_spec.rb +94 -0
- data/spec/models/attachment_spec.rb +52 -0
- data/spec/models/available_actions_spec.rb +46 -0
- data/spec/models/candidate_request_spec.rb +118 -0
- data/spec/models/candidate_spec.rb +136 -0
- data/spec/models/data_passthrough_request_spec.rb +58 -0
- data/spec/models/data_passthrough_spec.rb +52 -0
- data/spec/models/department_spec.rb +46 -0
- data/spec/models/disability_status_enum_spec.rb +28 -0
- data/spec/models/eeoc_spec.rb +76 -0
- data/spec/models/email_address_request_spec.rb +40 -0
- data/spec/models/email_address_spec.rb +40 -0
- data/spec/models/email_address_type_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +56 -0
- data/spec/models/end_user_details_spec.rb +56 -0
- data/spec/models/gender_enum_spec.rb +28 -0
- data/spec/models/generate_remote_key_request_spec.rb +34 -0
- data/spec/models/job_interview_stage_spec.rb +52 -0
- data/spec/models/job_spec.rb +88 -0
- data/spec/models/job_status_enum_spec.rb +28 -0
- data/spec/models/link_token_spec.rb +40 -0
- data/spec/models/method_enum_spec.rb +28 -0
- data/spec/models/model_operation_spec.rb +40 -0
- data/spec/models/offer_spec.rb +82 -0
- data/spec/models/offer_status_enum_spec.rb +28 -0
- data/spec/models/office_spec.rb +52 -0
- data/spec/models/overall_recommendation_enum_spec.rb +28 -0
- data/spec/models/paginated_activity_list_spec.rb +46 -0
- data/spec/models/paginated_application_list_spec.rb +46 -0
- data/spec/models/paginated_attachment_list_spec.rb +46 -0
- data/spec/models/paginated_candidate_list_spec.rb +46 -0
- data/spec/models/paginated_department_list_spec.rb +46 -0
- data/spec/models/paginated_eeoc_list_spec.rb +46 -0
- data/spec/models/paginated_job_interview_stage_list_spec.rb +46 -0
- data/spec/models/paginated_job_list_spec.rb +46 -0
- data/spec/models/paginated_offer_list_spec.rb +46 -0
- data/spec/models/paginated_office_list_spec.rb +46 -0
- data/spec/models/paginated_reject_reason_list_spec.rb +46 -0
- data/spec/models/paginated_remote_user_list_spec.rb +46 -0
- data/spec/models/paginated_scheduled_interview_list_spec.rb +46 -0
- data/spec/models/paginated_scorecard_list_spec.rb +46 -0
- data/spec/models/paginated_tag_list_spec.rb +46 -0
- data/spec/models/patched_application_request_spec.rb +82 -0
- data/spec/models/phone_number_request_spec.rb +40 -0
- data/spec/models/phone_number_spec.rb +40 -0
- data/spec/models/phone_number_type_enum_spec.rb +28 -0
- data/spec/models/race_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +46 -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_for_regeneration_spec.rb +34 -0
- data/spec/models/remote_key_spec.rb +40 -0
- data/spec/models/remote_response_spec.rb +58 -0
- data/spec/models/remote_user_spec.rb +76 -0
- data/spec/models/scheduled_interview_spec.rb +100 -0
- data/spec/models/scheduled_interview_status_enum_spec.rb +28 -0
- data/spec/models/scorecard_spec.rb +76 -0
- data/spec/models/sync_status_spec.rb +64 -0
- data/spec/models/tag_spec.rb +40 -0
- data/spec/models/url_request_spec.rb +40 -0
- data/spec/models/url_spec.rb +40 -0
- data/spec/models/url_type_enum_spec.rb +28 -0
- data/spec/models/veteran_status_enum_spec.rb +28 -0
- data/spec/models/visibility_enum_spec.rb +28 -0
- data/spec/spec_helper.rb +111 -0
- data/test_ats.rb +22 -0
- data/test_signature.rb +32 -0
- metadata +473 -0
data/docs/Attachment.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# MergeATSClient::Attachment
|
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
|
+
| **file_name** | **String** | The attachment's name. | [optional] |
|
10
|
+
| **file_url** | **String** | The attachment's url. | [optional] |
|
11
|
+
| **candidate** | **String** | | [optional] |
|
12
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'merge_ats_client'
|
18
|
+
|
19
|
+
instance = MergeATSClient::Attachment.new(
|
20
|
+
id: c640b80b-fac9-409f-aa19-1f9221aec445,
|
21
|
+
remote_id: 11167,
|
22
|
+
file_name: Candidate Resume,
|
23
|
+
file_url: http://alturl.com/p749b,
|
24
|
+
candidate: 2872ba14-4084-492b-be96-e5eee6fc33ef,
|
25
|
+
remote_data: [{"path":"/attachments","data":["Varies by platform"]}]
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,177 @@
|
|
1
|
+
# MergeATSClient::AttachmentsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ats/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**attachments_list**](AttachmentsApi.md#attachments_list) | **GET** /attachments | |
|
8
|
+
| [**attachments_retrieve**](AttachmentsApi.md#attachments_retrieve) | **GET** /attachments/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## attachments_list
|
12
|
+
|
13
|
+
> <PaginatedAttachmentList> attachments_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `Attachment` objects.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'merge_ats_client'
|
24
|
+
# setup authorization
|
25
|
+
MergeATSClient.configure do |config|
|
26
|
+
# Configure API key authorization: tokenAuth
|
27
|
+
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = MergeATSClient::AttachmentsApi.new
|
33
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
34
|
+
opts = {
|
35
|
+
candidate_id: 'candidate_id_example', # String | If provided, will only return attachments for this candidate.
|
36
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
37
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
38
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
39
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
40
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
41
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
42
|
+
page_size: 56, # Integer | Number of results to return per page.
|
43
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
|
48
|
+
result = api_instance.attachments_list(x_account_token, opts)
|
49
|
+
p result
|
50
|
+
rescue MergeATSClient::ApiError => e
|
51
|
+
puts "Error when calling AttachmentsApi->attachments_list: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
#### Using the attachments_list_with_http_info variant
|
56
|
+
|
57
|
+
This returns an Array which contains the response data, status code and headers.
|
58
|
+
|
59
|
+
> <Array(<PaginatedAttachmentList>, Integer, Hash)> attachments_list_with_http_info(x_account_token, opts)
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
begin
|
63
|
+
|
64
|
+
data, status_code, headers = api_instance.attachments_list_with_http_info(x_account_token, opts)
|
65
|
+
p status_code # => 2xx
|
66
|
+
p headers # => { ... }
|
67
|
+
p data # => <PaginatedAttachmentList>
|
68
|
+
rescue MergeATSClient::ApiError => e
|
69
|
+
puts "Error when calling AttachmentsApi->attachments_list_with_http_info: #{e}"
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
### Parameters
|
74
|
+
|
75
|
+
| Name | Type | Description | Notes |
|
76
|
+
| ---- | ---- | ----------- | ----- |
|
77
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
78
|
+
| **candidate_id** | **String** | If provided, will only return attachments for this candidate. | [optional] |
|
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
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
83
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
84
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
85
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
86
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
87
|
+
|
88
|
+
### Return type
|
89
|
+
|
90
|
+
[**PaginatedAttachmentList**](PaginatedAttachmentList.md)
|
91
|
+
|
92
|
+
### Authorization
|
93
|
+
|
94
|
+
[tokenAuth](../README.md#tokenAuth)
|
95
|
+
|
96
|
+
### HTTP request headers
|
97
|
+
|
98
|
+
- **Content-Type**: Not defined
|
99
|
+
- **Accept**: application/json
|
100
|
+
|
101
|
+
|
102
|
+
## attachments_retrieve
|
103
|
+
|
104
|
+
> <Attachment> attachments_retrieve(x_account_token, id, opts)
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
Returns an `Attachment` object with the given `id`.
|
109
|
+
|
110
|
+
### Examples
|
111
|
+
|
112
|
+
```ruby
|
113
|
+
require 'time'
|
114
|
+
require 'merge_ats_client'
|
115
|
+
# setup authorization
|
116
|
+
MergeATSClient.configure do |config|
|
117
|
+
# Configure API key authorization: tokenAuth
|
118
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
119
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
120
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
121
|
+
end
|
122
|
+
|
123
|
+
api_instance = MergeATSClient::AttachmentsApi.new
|
124
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
125
|
+
id = TODO # String |
|
126
|
+
opts = {
|
127
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
128
|
+
}
|
129
|
+
|
130
|
+
begin
|
131
|
+
|
132
|
+
result = api_instance.attachments_retrieve(x_account_token, id, opts)
|
133
|
+
p result
|
134
|
+
rescue MergeATSClient::ApiError => e
|
135
|
+
puts "Error when calling AttachmentsApi->attachments_retrieve: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
#### Using the attachments_retrieve_with_http_info variant
|
140
|
+
|
141
|
+
This returns an Array which contains the response data, status code and headers.
|
142
|
+
|
143
|
+
> <Array(<Attachment>, Integer, Hash)> attachments_retrieve_with_http_info(x_account_token, id, opts)
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
begin
|
147
|
+
|
148
|
+
data, status_code, headers = api_instance.attachments_retrieve_with_http_info(x_account_token, id, opts)
|
149
|
+
p status_code # => 2xx
|
150
|
+
p headers # => { ... }
|
151
|
+
p data # => <Attachment>
|
152
|
+
rescue MergeATSClient::ApiError => e
|
153
|
+
puts "Error when calling AttachmentsApi->attachments_retrieve_with_http_info: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
|
159
|
+
| Name | Type | Description | Notes |
|
160
|
+
| ---- | ---- | ----------- | ----- |
|
161
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
162
|
+
| **id** | [**String**](.md) | | |
|
163
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
164
|
+
|
165
|
+
### Return type
|
166
|
+
|
167
|
+
[**Attachment**](Attachment.md)
|
168
|
+
|
169
|
+
### Authorization
|
170
|
+
|
171
|
+
[tokenAuth](../README.md#tokenAuth)
|
172
|
+
|
173
|
+
### HTTP request headers
|
174
|
+
|
175
|
+
- **Content-Type**: Not defined
|
176
|
+
- **Accept**: application/json
|
177
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MergeATSClient::AvailableActions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **integration** | [**AccountIntegration**](AccountIntegration.md) | | |
|
8
|
+
| **passthrough_available** | **Boolean** | | |
|
9
|
+
| **available_model_operations** | [**Array<ModelOperation>**](ModelOperation.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'merge_ats_client'
|
15
|
+
|
16
|
+
instance = MergeATSClient::AvailableActions.new(
|
17
|
+
integration: null,
|
18
|
+
passthrough_available: true,
|
19
|
+
available_model_operations: [{"model_name":"Candidate","available_operations":["FETCH","CREATE"]}]
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# MergeATSClient::AvailableActionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ats/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**available_actions_retrieve**](AvailableActionsApi.md#available_actions_retrieve) | **GET** /available-actions | |
|
8
|
+
|
9
|
+
|
10
|
+
## available_actions_retrieve
|
11
|
+
|
12
|
+
> <AvailableActions> available_actions_retrieve(x_account_token)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Returns a list of models and actions available for an account.
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'merge_ats_client'
|
23
|
+
# setup authorization
|
24
|
+
MergeATSClient.configure do |config|
|
25
|
+
# Configure API key authorization: tokenAuth
|
26
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = MergeATSClient::AvailableActionsApi.new
|
32
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
33
|
+
|
34
|
+
begin
|
35
|
+
|
36
|
+
result = api_instance.available_actions_retrieve(x_account_token)
|
37
|
+
p result
|
38
|
+
rescue MergeATSClient::ApiError => e
|
39
|
+
puts "Error when calling AvailableActionsApi->available_actions_retrieve: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the available_actions_retrieve_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
46
|
+
|
47
|
+
> <Array(<AvailableActions>, Integer, Hash)> available_actions_retrieve_with_http_info(x_account_token)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
|
52
|
+
data, status_code, headers = api_instance.available_actions_retrieve_with_http_info(x_account_token)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => <AvailableActions>
|
56
|
+
rescue MergeATSClient::ApiError => e
|
57
|
+
puts "Error when calling AvailableActionsApi->available_actions_retrieve_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**AvailableActions**](AvailableActions.md)
|
70
|
+
|
71
|
+
### Authorization
|
72
|
+
|
73
|
+
[tokenAuth](../README.md#tokenAuth)
|
74
|
+
|
75
|
+
### HTTP request headers
|
76
|
+
|
77
|
+
- **Content-Type**: Not defined
|
78
|
+
- **Accept**: application/json
|
79
|
+
|
data/docs/Candidate.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# MergeATSClient::Candidate
|
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
|
+
| **first_name** | **String** | The candidate's first name. | [optional] |
|
10
|
+
| **last_name** | **String** | The candidate's last name. | [optional] |
|
11
|
+
| **company** | **String** | The candidate's current company. | [optional] |
|
12
|
+
| **title** | **String** | The candidate's current title. | [optional] |
|
13
|
+
| **remote_created_at** | **Time** | When the third party's candidate was created. | [optional] |
|
14
|
+
| **remote_updated_at** | **Time** | When the third party's candidate was updated. | [optional] |
|
15
|
+
| **last_interaction_at** | **Time** | When the most recent candidate interaction occurred. | [optional] |
|
16
|
+
| **is_private** | **Boolean** | Whether or not the candidate is private. | [optional] |
|
17
|
+
| **can_email** | **Boolean** | Whether or not the candidate can be emailed. | [optional] |
|
18
|
+
| **locations** | **Array<String>** | The candidate's locations. | [optional] |
|
19
|
+
| **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
|
20
|
+
| **email_addresses** | [**Array<EmailAddress>**](EmailAddress.md) | | [optional] |
|
21
|
+
| **urls** | [**Array<Url>**](Url.md) | | [optional] |
|
22
|
+
| **tags** | **Array<String>** | | [optional] |
|
23
|
+
| **applications** | **Array<String>** | | [optional][readonly] |
|
24
|
+
| **attachments** | **Array<String>** | | [optional][readonly] |
|
25
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
26
|
+
|
27
|
+
## Example
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'merge_ats_client'
|
31
|
+
|
32
|
+
instance = MergeATSClient::Candidate.new(
|
33
|
+
id: 521b18c2-4d01-4297-b451-19858d07c133,
|
34
|
+
remote_id: 21198,
|
35
|
+
first_name: Gil,
|
36
|
+
last_name: Feig,
|
37
|
+
company: Columbia Dining App.,
|
38
|
+
title: Software Engineer,
|
39
|
+
remote_created_at: null,
|
40
|
+
remote_updated_at: null,
|
41
|
+
last_interaction_at: null,
|
42
|
+
is_private: true,
|
43
|
+
can_email: true,
|
44
|
+
locations: ["San Francisco","New York","Miami"],
|
45
|
+
phone_numbers: [{"value":"+1234567890","phone_number_type":"MOBILE"}],
|
46
|
+
email_addresses: [{"value":"hello@merge.dev","email_address_type":"PERSONAL"}],
|
47
|
+
urls: [{"value":"http://alturl.com/p749b","url_type":"BLOG"}],
|
48
|
+
tags: ["High-Priority"],
|
49
|
+
applications: ["29eb9867-ce2a-403f-b8ce-f2844b89f078","b4d08e5c-de00-4d64-a29f-66addac9af99","4ff877d2-fb3e-4a5b-a7a5-168ddf2ffa56"],
|
50
|
+
attachments: ["bea08964-32b4-4a20-8bb4-2612ba09de1d"],
|
51
|
+
remote_data: [{"path":"/candidates","data":["Varies by platform"]}]
|
52
|
+
)
|
53
|
+
```
|
54
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# MergeATSClient::CandidateRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
8
|
+
| **first_name** | **String** | The candidate's first name. | [optional] |
|
9
|
+
| **last_name** | **String** | The candidate's last name. | [optional] |
|
10
|
+
| **company** | **String** | The candidate's current company. | [optional] |
|
11
|
+
| **title** | **String** | The candidate's current title. | [optional] |
|
12
|
+
| **remote_created_at** | **Time** | When the third party's candidate was created. | [optional] |
|
13
|
+
| **remote_updated_at** | **Time** | When the third party's candidate was updated. | [optional] |
|
14
|
+
| **last_interaction_at** | **Time** | When the most recent candidate interaction occurred. | [optional] |
|
15
|
+
| **is_private** | **Boolean** | Whether or not the candidate is private. | [optional] |
|
16
|
+
| **can_email** | **Boolean** | Whether or not the candidate can be emailed. | [optional] |
|
17
|
+
| **locations** | **Array<String>** | The candidate's locations. | [optional] |
|
18
|
+
| **phone_numbers** | [**Array<PhoneNumberRequest>**](PhoneNumberRequest.md) | | [optional] |
|
19
|
+
| **email_addresses** | [**Array<EmailAddressRequest>**](EmailAddressRequest.md) | | [optional] |
|
20
|
+
| **urls** | [**Array<UrlRequest>**](UrlRequest.md) | | [optional] |
|
21
|
+
| **tags** | **Array<String>** | | [optional] |
|
22
|
+
|
23
|
+
## Example
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'merge_ats_client'
|
27
|
+
|
28
|
+
instance = MergeATSClient::CandidateRequest.new(
|
29
|
+
remote_id: 21198,
|
30
|
+
first_name: Gil,
|
31
|
+
last_name: Feig,
|
32
|
+
company: Columbia Dining App.,
|
33
|
+
title: Software Engineer,
|
34
|
+
remote_created_at: null,
|
35
|
+
remote_updated_at: null,
|
36
|
+
last_interaction_at: null,
|
37
|
+
is_private: true,
|
38
|
+
can_email: true,
|
39
|
+
locations: ["San Francisco","New York","Miami"],
|
40
|
+
phone_numbers: [{"value":"+1234567890","phone_number_type":"MOBILE"}],
|
41
|
+
email_addresses: [{"value":"hello@merge.dev","email_address_type":"PERSONAL"}],
|
42
|
+
urls: [{"value":"http://alturl.com/p749b","url_type":"BLOG"}],
|
43
|
+
tags: ["High-Priority"]
|
44
|
+
)
|
45
|
+
```
|
46
|
+
|
@@ -0,0 +1,259 @@
|
|
1
|
+
# MergeATSClient::CandidatesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ats/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**candidates_create**](CandidatesApi.md#candidates_create) | **POST** /candidates | |
|
8
|
+
| [**candidates_list**](CandidatesApi.md#candidates_list) | **GET** /candidates | |
|
9
|
+
| [**candidates_retrieve**](CandidatesApi.md#candidates_retrieve) | **GET** /candidates/{id} | |
|
10
|
+
|
11
|
+
|
12
|
+
## candidates_create
|
13
|
+
|
14
|
+
> <Candidate> candidates_create(x_account_token, remote_user_id, opts)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
Creates a `Candidate` object with the given values.
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'merge_ats_client'
|
25
|
+
# setup authorization
|
26
|
+
MergeATSClient.configure do |config|
|
27
|
+
# Configure API key authorization: tokenAuth
|
28
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = MergeATSClient::CandidatesApi.new
|
34
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
35
|
+
remote_user_id = 'remote_user_id_example' # String | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
|
36
|
+
opts = {
|
37
|
+
run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
|
38
|
+
candidate_request: MergeATSClient::CandidateRequest.new # CandidateRequest |
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
|
43
|
+
result = api_instance.candidates_create(x_account_token, remote_user_id, opts)
|
44
|
+
p result
|
45
|
+
rescue MergeATSClient::ApiError => e
|
46
|
+
puts "Error when calling CandidatesApi->candidates_create: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Using the candidates_create_with_http_info variant
|
51
|
+
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
53
|
+
|
54
|
+
> <Array(<Candidate>, Integer, Hash)> candidates_create_with_http_info(x_account_token, remote_user_id, opts)
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
begin
|
58
|
+
|
59
|
+
data, status_code, headers = api_instance.candidates_create_with_http_info(x_account_token, remote_user_id, opts)
|
60
|
+
p status_code # => 2xx
|
61
|
+
p headers # => { ... }
|
62
|
+
p data # => <Candidate>
|
63
|
+
rescue MergeATSClient::ApiError => e
|
64
|
+
puts "Error when calling CandidatesApi->candidates_create_with_http_info: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
### Parameters
|
69
|
+
|
70
|
+
| Name | Type | Description | Notes |
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
72
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
73
|
+
| **remote_user_id** | **String** | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table. | |
|
74
|
+
| **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
|
75
|
+
| **candidate_request** | [**CandidateRequest**](CandidateRequest.md) | | [optional] |
|
76
|
+
|
77
|
+
### Return type
|
78
|
+
|
79
|
+
[**Candidate**](Candidate.md)
|
80
|
+
|
81
|
+
### Authorization
|
82
|
+
|
83
|
+
[tokenAuth](../README.md#tokenAuth)
|
84
|
+
|
85
|
+
### HTTP request headers
|
86
|
+
|
87
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
88
|
+
- **Accept**: application/json
|
89
|
+
|
90
|
+
|
91
|
+
## candidates_list
|
92
|
+
|
93
|
+
> <PaginatedCandidateList> candidates_list(x_account_token, opts)
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
Returns a list of `Candidate` objects.
|
98
|
+
|
99
|
+
### Examples
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
require 'time'
|
103
|
+
require 'merge_ats_client'
|
104
|
+
# setup authorization
|
105
|
+
MergeATSClient.configure do |config|
|
106
|
+
# Configure API key authorization: tokenAuth
|
107
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
108
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
109
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
110
|
+
end
|
111
|
+
|
112
|
+
api_instance = MergeATSClient::CandidatesApi.new
|
113
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
114
|
+
opts = {
|
115
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
116
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
117
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
118
|
+
expand: 'applications', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
119
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
120
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
121
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
122
|
+
page_size: 56, # Integer | Number of results to return per page.
|
123
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
124
|
+
}
|
125
|
+
|
126
|
+
begin
|
127
|
+
|
128
|
+
result = api_instance.candidates_list(x_account_token, opts)
|
129
|
+
p result
|
130
|
+
rescue MergeATSClient::ApiError => e
|
131
|
+
puts "Error when calling CandidatesApi->candidates_list: #{e}"
|
132
|
+
end
|
133
|
+
```
|
134
|
+
|
135
|
+
#### Using the candidates_list_with_http_info variant
|
136
|
+
|
137
|
+
This returns an Array which contains the response data, status code and headers.
|
138
|
+
|
139
|
+
> <Array(<PaginatedCandidateList>, Integer, Hash)> candidates_list_with_http_info(x_account_token, opts)
|
140
|
+
|
141
|
+
```ruby
|
142
|
+
begin
|
143
|
+
|
144
|
+
data, status_code, headers = api_instance.candidates_list_with_http_info(x_account_token, opts)
|
145
|
+
p status_code # => 2xx
|
146
|
+
p headers # => { ... }
|
147
|
+
p data # => <PaginatedCandidateList>
|
148
|
+
rescue MergeATSClient::ApiError => e
|
149
|
+
puts "Error when calling CandidatesApi->candidates_list_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
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
159
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
160
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
161
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
162
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
163
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
164
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
165
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
166
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
167
|
+
|
168
|
+
### Return type
|
169
|
+
|
170
|
+
[**PaginatedCandidateList**](PaginatedCandidateList.md)
|
171
|
+
|
172
|
+
### Authorization
|
173
|
+
|
174
|
+
[tokenAuth](../README.md#tokenAuth)
|
175
|
+
|
176
|
+
### HTTP request headers
|
177
|
+
|
178
|
+
- **Content-Type**: Not defined
|
179
|
+
- **Accept**: application/json
|
180
|
+
|
181
|
+
|
182
|
+
## candidates_retrieve
|
183
|
+
|
184
|
+
> <Candidate> candidates_retrieve(x_account_token, id, opts)
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
Returns a `Candidate` object with the given `id`.
|
189
|
+
|
190
|
+
### Examples
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
require 'time'
|
194
|
+
require 'merge_ats_client'
|
195
|
+
# setup authorization
|
196
|
+
MergeATSClient.configure do |config|
|
197
|
+
# Configure API key authorization: tokenAuth
|
198
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
199
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
200
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
201
|
+
end
|
202
|
+
|
203
|
+
api_instance = MergeATSClient::CandidatesApi.new
|
204
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
205
|
+
id = TODO # String |
|
206
|
+
opts = {
|
207
|
+
expand: 'applications', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
208
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
209
|
+
}
|
210
|
+
|
211
|
+
begin
|
212
|
+
|
213
|
+
result = api_instance.candidates_retrieve(x_account_token, id, opts)
|
214
|
+
p result
|
215
|
+
rescue MergeATSClient::ApiError => e
|
216
|
+
puts "Error when calling CandidatesApi->candidates_retrieve: #{e}"
|
217
|
+
end
|
218
|
+
```
|
219
|
+
|
220
|
+
#### Using the candidates_retrieve_with_http_info variant
|
221
|
+
|
222
|
+
This returns an Array which contains the response data, status code and headers.
|
223
|
+
|
224
|
+
> <Array(<Candidate>, Integer, Hash)> candidates_retrieve_with_http_info(x_account_token, id, opts)
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
begin
|
228
|
+
|
229
|
+
data, status_code, headers = api_instance.candidates_retrieve_with_http_info(x_account_token, id, opts)
|
230
|
+
p status_code # => 2xx
|
231
|
+
p headers # => { ... }
|
232
|
+
p data # => <Candidate>
|
233
|
+
rescue MergeATSClient::ApiError => e
|
234
|
+
puts "Error when calling CandidatesApi->candidates_retrieve_with_http_info: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
| Name | Type | Description | Notes |
|
241
|
+
| ---- | ---- | ----------- | ----- |
|
242
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
243
|
+
| **id** | [**String**](.md) | | |
|
244
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
245
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
246
|
+
|
247
|
+
### Return type
|
248
|
+
|
249
|
+
[**Candidate**](Candidate.md)
|
250
|
+
|
251
|
+
### Authorization
|
252
|
+
|
253
|
+
[tokenAuth](../README.md#tokenAuth)
|
254
|
+
|
255
|
+
### HTTP request headers
|
256
|
+
|
257
|
+
- **Content-Type**: Not defined
|
258
|
+
- **Accept**: application/json
|
259
|
+
|