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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 23c63df72c335784d48e23f7aea503567c63100e27293774cf847a1a3747b2ef
|
4
|
+
data.tar.gz: 307bf07ff463f556b316038fbf601874771864b889f7575bda77084131c40308
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 484cde5e2ac898fbcba0a90c396341993a6ab2682ce0da22e13e225f4eb59d5c72a2e31a031f8052d9d2b53f665370a25e49c794b53a24ccd66d9f0b5d1ccc7e
|
7
|
+
data.tar.gz: 24585fc52b87d4cc4aa698580cb8734b6c20243e1586efc70a5fc715560fb1a0e0c1a430d7ce095545e64476cbc792de127470fff6fd3647cf0c11872a5647fa
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,208 @@
|
|
1
|
+
# merge_ats_client
|
2
|
+
|
3
|
+
MergeATSClient - the Ruby gem for the Merge ATS API
|
4
|
+
|
5
|
+
The unified API for building rich integrations with multiple Applicant Tracking System platforms.
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 1.0
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
|
+
For more information, please visit [https://www.merge.dev/](https://www.merge.dev/)
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
### Build a gem
|
17
|
+
|
18
|
+
To build the Ruby code into a gem:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
gem build merge_ats_client.gemspec
|
22
|
+
```
|
23
|
+
|
24
|
+
Then either install the gem locally:
|
25
|
+
|
26
|
+
```shell
|
27
|
+
gem install ./merge_ats_client-1.0.0.gem
|
28
|
+
```
|
29
|
+
|
30
|
+
(for development, run `gem install --dev ./merge_ats_client-1.0.0.gem` to install the development dependencies)
|
31
|
+
|
32
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
|
+
|
34
|
+
Finally add this to the Gemfile:
|
35
|
+
|
36
|
+
gem 'merge_ats_client', '~> 1.0.0'
|
37
|
+
|
38
|
+
### Install from Git
|
39
|
+
|
40
|
+
If the Ruby gem is hosted at a git repository: https://github.com/merge-api/merge-ats-ruby, then add the following in the Gemfile:
|
41
|
+
|
42
|
+
gem 'merge_ats_client', :git => 'https://github.com/merge-api/merge-ats-ruby.git'
|
43
|
+
|
44
|
+
### Include the Ruby code directly
|
45
|
+
|
46
|
+
Include the Ruby code directly using `-I` as follows:
|
47
|
+
|
48
|
+
```shell
|
49
|
+
ruby -Ilib script.rb
|
50
|
+
```
|
51
|
+
|
52
|
+
## Getting Started
|
53
|
+
|
54
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
# Load the gem
|
58
|
+
require 'merge_ats_client'
|
59
|
+
|
60
|
+
# Setup authorization
|
61
|
+
MergeATSClient.configure do |config|
|
62
|
+
# Configure API key authorization: tokenAuth
|
63
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
64
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
65
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
66
|
+
end
|
67
|
+
|
68
|
+
api_instance = MergeATSClient::AccountTokenApi.new
|
69
|
+
public_token = 'public_token_example' # String |
|
70
|
+
|
71
|
+
begin
|
72
|
+
result = api_instance.account_token_retrieve(public_token)
|
73
|
+
p result
|
74
|
+
rescue MergeATSClient::ApiError => e
|
75
|
+
puts "Exception when calling AccountTokenApi->account_token_retrieve: #{e}"
|
76
|
+
end
|
77
|
+
|
78
|
+
```
|
79
|
+
|
80
|
+
## Documentation for API Endpoints
|
81
|
+
|
82
|
+
All URIs are relative to *https://api.merge.dev/api/ats/v1*
|
83
|
+
|
84
|
+
Class | Method | HTTP request | Description
|
85
|
+
------------ | ------------- | ------------- | -------------
|
86
|
+
*MergeATSClient::AccountTokenApi* | [**account_token_retrieve**](docs/AccountTokenApi.md#account_token_retrieve) | **GET** /account-token/{public_token} |
|
87
|
+
*MergeATSClient::ActivitiesApi* | [**activities_list**](docs/ActivitiesApi.md#activities_list) | **GET** /activities |
|
88
|
+
*MergeATSClient::ActivitiesApi* | [**activities_retrieve**](docs/ActivitiesApi.md#activities_retrieve) | **GET** /activities/{id} |
|
89
|
+
*MergeATSClient::ApplicationsApi* | [**applications_create**](docs/ApplicationsApi.md#applications_create) | **POST** /applications |
|
90
|
+
*MergeATSClient::ApplicationsApi* | [**applications_list**](docs/ApplicationsApi.md#applications_list) | **GET** /applications |
|
91
|
+
*MergeATSClient::ApplicationsApi* | [**applications_partial_update**](docs/ApplicationsApi.md#applications_partial_update) | **PATCH** /applications/{id} |
|
92
|
+
*MergeATSClient::ApplicationsApi* | [**applications_retrieve**](docs/ApplicationsApi.md#applications_retrieve) | **GET** /applications/{id} |
|
93
|
+
*MergeATSClient::AttachmentsApi* | [**attachments_list**](docs/AttachmentsApi.md#attachments_list) | **GET** /attachments |
|
94
|
+
*MergeATSClient::AttachmentsApi* | [**attachments_retrieve**](docs/AttachmentsApi.md#attachments_retrieve) | **GET** /attachments/{id} |
|
95
|
+
*MergeATSClient::AvailableActionsApi* | [**available_actions_retrieve**](docs/AvailableActionsApi.md#available_actions_retrieve) | **GET** /available-actions |
|
96
|
+
*MergeATSClient::CandidatesApi* | [**candidates_create**](docs/CandidatesApi.md#candidates_create) | **POST** /candidates |
|
97
|
+
*MergeATSClient::CandidatesApi* | [**candidates_list**](docs/CandidatesApi.md#candidates_list) | **GET** /candidates |
|
98
|
+
*MergeATSClient::CandidatesApi* | [**candidates_retrieve**](docs/CandidatesApi.md#candidates_retrieve) | **GET** /candidates/{id} |
|
99
|
+
*MergeATSClient::DepartmentsApi* | [**departments_list**](docs/DepartmentsApi.md#departments_list) | **GET** /departments |
|
100
|
+
*MergeATSClient::DepartmentsApi* | [**departments_retrieve**](docs/DepartmentsApi.md#departments_retrieve) | **GET** /departments/{id} |
|
101
|
+
*MergeATSClient::EeocsApi* | [**eeocs_list**](docs/EeocsApi.md#eeocs_list) | **GET** /eeocs |
|
102
|
+
*MergeATSClient::EeocsApi* | [**eeocs_retrieve**](docs/EeocsApi.md#eeocs_retrieve) | **GET** /eeocs/{id} |
|
103
|
+
*MergeATSClient::GenerateKeyApi* | [**generate_key_create**](docs/GenerateKeyApi.md#generate_key_create) | **POST** /generate-key |
|
104
|
+
*MergeATSClient::InterviewsApi* | [**interviews_list**](docs/InterviewsApi.md#interviews_list) | **GET** /interviews |
|
105
|
+
*MergeATSClient::InterviewsApi* | [**interviews_retrieve**](docs/InterviewsApi.md#interviews_retrieve) | **GET** /interviews/{id} |
|
106
|
+
*MergeATSClient::JobInterviewStagesApi* | [**job_interview_stages_list**](docs/JobInterviewStagesApi.md#job_interview_stages_list) | **GET** /job-interview-stages |
|
107
|
+
*MergeATSClient::JobInterviewStagesApi* | [**job_interview_stages_retrieve**](docs/JobInterviewStagesApi.md#job_interview_stages_retrieve) | **GET** /job-interview-stages/{id} |
|
108
|
+
*MergeATSClient::JobsApi* | [**jobs_list**](docs/JobsApi.md#jobs_list) | **GET** /jobs |
|
109
|
+
*MergeATSClient::JobsApi* | [**jobs_retrieve**](docs/JobsApi.md#jobs_retrieve) | **GET** /jobs/{id} |
|
110
|
+
*MergeATSClient::LinkTokenApi* | [**link_token_create**](docs/LinkTokenApi.md#link_token_create) | **POST** /link-token |
|
111
|
+
*MergeATSClient::OffersApi* | [**offers_list**](docs/OffersApi.md#offers_list) | **GET** /offers |
|
112
|
+
*MergeATSClient::OffersApi* | [**offers_retrieve**](docs/OffersApi.md#offers_retrieve) | **GET** /offers/{id} |
|
113
|
+
*MergeATSClient::OfficesApi* | [**offices_list**](docs/OfficesApi.md#offices_list) | **GET** /offices |
|
114
|
+
*MergeATSClient::OfficesApi* | [**offices_retrieve**](docs/OfficesApi.md#offices_retrieve) | **GET** /offices/{id} |
|
115
|
+
*MergeATSClient::PassthroughApi* | [**passthrough_create**](docs/PassthroughApi.md#passthrough_create) | **POST** /passthrough |
|
116
|
+
*MergeATSClient::RegenerateKeyApi* | [**regenerate_key_create**](docs/RegenerateKeyApi.md#regenerate_key_create) | **POST** /regenerate-key |
|
117
|
+
*MergeATSClient::RejectReasonsApi* | [**reject_reasons_list**](docs/RejectReasonsApi.md#reject_reasons_list) | **GET** /reject-reasons |
|
118
|
+
*MergeATSClient::RejectReasonsApi* | [**reject_reasons_retrieve**](docs/RejectReasonsApi.md#reject_reasons_retrieve) | **GET** /reject-reasons/{id} |
|
119
|
+
*MergeATSClient::ScorecardsApi* | [**scorecards_list**](docs/ScorecardsApi.md#scorecards_list) | **GET** /scorecards |
|
120
|
+
*MergeATSClient::ScorecardsApi* | [**scorecards_retrieve**](docs/ScorecardsApi.md#scorecards_retrieve) | **GET** /scorecards/{id} |
|
121
|
+
*MergeATSClient::SyncStatusApi* | [**sync_status_retrieve**](docs/SyncStatusApi.md#sync_status_retrieve) | **GET** /sync-status |
|
122
|
+
*MergeATSClient::TagsApi* | [**tags_list**](docs/TagsApi.md#tags_list) | **GET** /tags |
|
123
|
+
*MergeATSClient::UsersApi* | [**users_list**](docs/UsersApi.md#users_list) | **GET** /users |
|
124
|
+
*MergeATSClient::UsersApi* | [**users_retrieve**](docs/UsersApi.md#users_retrieve) | **GET** /users/{id} |
|
125
|
+
|
126
|
+
|
127
|
+
## Documentation for Models
|
128
|
+
|
129
|
+
- [MergeATSClient::AccessRoleEnum](docs/AccessRoleEnum.md)
|
130
|
+
- [MergeATSClient::AccountIntegration](docs/AccountIntegration.md)
|
131
|
+
- [MergeATSClient::AccountToken](docs/AccountToken.md)
|
132
|
+
- [MergeATSClient::Activity](docs/Activity.md)
|
133
|
+
- [MergeATSClient::ActivityTypeEnum](docs/ActivityTypeEnum.md)
|
134
|
+
- [MergeATSClient::Application](docs/Application.md)
|
135
|
+
- [MergeATSClient::ApplicationRequest](docs/ApplicationRequest.md)
|
136
|
+
- [MergeATSClient::Attachment](docs/Attachment.md)
|
137
|
+
- [MergeATSClient::AvailableActions](docs/AvailableActions.md)
|
138
|
+
- [MergeATSClient::Candidate](docs/Candidate.md)
|
139
|
+
- [MergeATSClient::CandidateRequest](docs/CandidateRequest.md)
|
140
|
+
- [MergeATSClient::DataPassthroughRequest](docs/DataPassthroughRequest.md)
|
141
|
+
- [MergeATSClient::Department](docs/Department.md)
|
142
|
+
- [MergeATSClient::DisabilityStatusEnum](docs/DisabilityStatusEnum.md)
|
143
|
+
- [MergeATSClient::EEOC](docs/EEOC.md)
|
144
|
+
- [MergeATSClient::EmailAddress](docs/EmailAddress.md)
|
145
|
+
- [MergeATSClient::EmailAddressRequest](docs/EmailAddressRequest.md)
|
146
|
+
- [MergeATSClient::EmailAddressTypeEnum](docs/EmailAddressTypeEnum.md)
|
147
|
+
- [MergeATSClient::EndUserDetailsRequest](docs/EndUserDetailsRequest.md)
|
148
|
+
- [MergeATSClient::GenderEnum](docs/GenderEnum.md)
|
149
|
+
- [MergeATSClient::GenerateRemoteKeyRequest](docs/GenerateRemoteKeyRequest.md)
|
150
|
+
- [MergeATSClient::Job](docs/Job.md)
|
151
|
+
- [MergeATSClient::JobInterviewStage](docs/JobInterviewStage.md)
|
152
|
+
- [MergeATSClient::JobStatusEnum](docs/JobStatusEnum.md)
|
153
|
+
- [MergeATSClient::LinkToken](docs/LinkToken.md)
|
154
|
+
- [MergeATSClient::MethodEnum](docs/MethodEnum.md)
|
155
|
+
- [MergeATSClient::ModelOperation](docs/ModelOperation.md)
|
156
|
+
- [MergeATSClient::Offer](docs/Offer.md)
|
157
|
+
- [MergeATSClient::OfferStatusEnum](docs/OfferStatusEnum.md)
|
158
|
+
- [MergeATSClient::Office](docs/Office.md)
|
159
|
+
- [MergeATSClient::OverallRecommendationEnum](docs/OverallRecommendationEnum.md)
|
160
|
+
- [MergeATSClient::PaginatedActivityList](docs/PaginatedActivityList.md)
|
161
|
+
- [MergeATSClient::PaginatedApplicationList](docs/PaginatedApplicationList.md)
|
162
|
+
- [MergeATSClient::PaginatedAttachmentList](docs/PaginatedAttachmentList.md)
|
163
|
+
- [MergeATSClient::PaginatedCandidateList](docs/PaginatedCandidateList.md)
|
164
|
+
- [MergeATSClient::PaginatedDepartmentList](docs/PaginatedDepartmentList.md)
|
165
|
+
- [MergeATSClient::PaginatedEEOCList](docs/PaginatedEEOCList.md)
|
166
|
+
- [MergeATSClient::PaginatedJobInterviewStageList](docs/PaginatedJobInterviewStageList.md)
|
167
|
+
- [MergeATSClient::PaginatedJobList](docs/PaginatedJobList.md)
|
168
|
+
- [MergeATSClient::PaginatedOfferList](docs/PaginatedOfferList.md)
|
169
|
+
- [MergeATSClient::PaginatedOfficeList](docs/PaginatedOfficeList.md)
|
170
|
+
- [MergeATSClient::PaginatedRejectReasonList](docs/PaginatedRejectReasonList.md)
|
171
|
+
- [MergeATSClient::PaginatedRemoteUserList](docs/PaginatedRemoteUserList.md)
|
172
|
+
- [MergeATSClient::PaginatedScheduledInterviewList](docs/PaginatedScheduledInterviewList.md)
|
173
|
+
- [MergeATSClient::PaginatedScorecardList](docs/PaginatedScorecardList.md)
|
174
|
+
- [MergeATSClient::PaginatedTagList](docs/PaginatedTagList.md)
|
175
|
+
- [MergeATSClient::PatchedApplicationRequest](docs/PatchedApplicationRequest.md)
|
176
|
+
- [MergeATSClient::PhoneNumber](docs/PhoneNumber.md)
|
177
|
+
- [MergeATSClient::PhoneNumberRequest](docs/PhoneNumberRequest.md)
|
178
|
+
- [MergeATSClient::PhoneNumberTypeEnum](docs/PhoneNumberTypeEnum.md)
|
179
|
+
- [MergeATSClient::RaceEnum](docs/RaceEnum.md)
|
180
|
+
- [MergeATSClient::RejectReason](docs/RejectReason.md)
|
181
|
+
- [MergeATSClient::RemoteData](docs/RemoteData.md)
|
182
|
+
- [MergeATSClient::RemoteDataRequest](docs/RemoteDataRequest.md)
|
183
|
+
- [MergeATSClient::RemoteKey](docs/RemoteKey.md)
|
184
|
+
- [MergeATSClient::RemoteKeyForRegenerationRequest](docs/RemoteKeyForRegenerationRequest.md)
|
185
|
+
- [MergeATSClient::RemoteResponse](docs/RemoteResponse.md)
|
186
|
+
- [MergeATSClient::RemoteUser](docs/RemoteUser.md)
|
187
|
+
- [MergeATSClient::ScheduledInterview](docs/ScheduledInterview.md)
|
188
|
+
- [MergeATSClient::ScheduledInterviewStatusEnum](docs/ScheduledInterviewStatusEnum.md)
|
189
|
+
- [MergeATSClient::Scorecard](docs/Scorecard.md)
|
190
|
+
- [MergeATSClient::SyncStatus](docs/SyncStatus.md)
|
191
|
+
- [MergeATSClient::Tag](docs/Tag.md)
|
192
|
+
- [MergeATSClient::Url](docs/Url.md)
|
193
|
+
- [MergeATSClient::UrlRequest](docs/UrlRequest.md)
|
194
|
+
- [MergeATSClient::UrlTypeEnum](docs/UrlTypeEnum.md)
|
195
|
+
- [MergeATSClient::VeteranStatusEnum](docs/VeteranStatusEnum.md)
|
196
|
+
- [MergeATSClient::VisibilityEnum](docs/VisibilityEnum.md)
|
197
|
+
|
198
|
+
|
199
|
+
## Documentation for Authorization
|
200
|
+
|
201
|
+
|
202
|
+
### tokenAuth
|
203
|
+
|
204
|
+
|
205
|
+
- **Type**: API key
|
206
|
+
- **API key parameter name**: Authorization
|
207
|
+
- **Location**: HTTP header
|
208
|
+
|
data/Rakefile
ADDED
data/config.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# MergeATSClient::AccessRoleEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'merge_ats_client'
|
12
|
+
|
13
|
+
instance = MergeATSClient::AccessRoleEnum.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# MergeATSClient::AccountIntegration
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | Company name. | |
|
8
|
+
| **categories** | **Array<String>** | Category or categories this integration belongs to. | [optional] |
|
9
|
+
| **image** | **String** | Company logo in rectangular shape. | [optional] |
|
10
|
+
| **square_image** | **String** | Company logo in square shape. | [optional] |
|
11
|
+
| **color** | **String** | The color of this integration used for buttons and text throughout the app and landing pages. | [optional] |
|
12
|
+
| **slug** | **String** | | [optional][readonly] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'merge_ats_client'
|
18
|
+
|
19
|
+
instance = MergeATSClient::AccountIntegration.new(
|
20
|
+
name: null,
|
21
|
+
categories: null,
|
22
|
+
image: null,
|
23
|
+
square_image: null,
|
24
|
+
color: null,
|
25
|
+
slug: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MergeATSClient::AccountToken
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_token** | **String** | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'merge_ats_client'
|
13
|
+
|
14
|
+
instance = MergeATSClient::AccountToken.new(
|
15
|
+
account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# MergeATSClient::AccountTokenApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ats/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**account_token_retrieve**](AccountTokenApi.md#account_token_retrieve) | **GET** /account-token/{public_token} | |
|
8
|
+
|
9
|
+
|
10
|
+
## account_token_retrieve
|
11
|
+
|
12
|
+
> <AccountToken> account_token_retrieve(public_token)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
Returns the account token for the end user with the provided public token.
|
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::AccountTokenApi.new
|
32
|
+
public_token = 'public_token_example' # String |
|
33
|
+
|
34
|
+
begin
|
35
|
+
|
36
|
+
result = api_instance.account_token_retrieve(public_token)
|
37
|
+
p result
|
38
|
+
rescue MergeATSClient::ApiError => e
|
39
|
+
puts "Error when calling AccountTokenApi->account_token_retrieve: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the account_token_retrieve_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
46
|
+
|
47
|
+
> <Array(<AccountToken>, Integer, Hash)> account_token_retrieve_with_http_info(public_token)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
|
52
|
+
data, status_code, headers = api_instance.account_token_retrieve_with_http_info(public_token)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => <AccountToken>
|
56
|
+
rescue MergeATSClient::ApiError => e
|
57
|
+
puts "Error when calling AccountTokenApi->account_token_retrieve_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **public_token** | **String** | | |
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**AccountToken**](AccountToken.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
|
+
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# MergeATSClient::ActivitiesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/ats/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**activities_list**](ActivitiesApi.md#activities_list) | **GET** /activities | |
|
8
|
+
| [**activities_retrieve**](ActivitiesApi.md#activities_retrieve) | **GET** /activities/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## activities_list
|
12
|
+
|
13
|
+
> <PaginatedActivityList> activities_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `Activity` 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::ActivitiesApi.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: 'user', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
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
|
+
user_id: 'user_id_example' # String | If provided, will only return activities done by this user.
|
45
|
+
}
|
46
|
+
|
47
|
+
begin
|
48
|
+
|
49
|
+
result = api_instance.activities_list(x_account_token, opts)
|
50
|
+
p result
|
51
|
+
rescue MergeATSClient::ApiError => e
|
52
|
+
puts "Error when calling ActivitiesApi->activities_list: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the activities_list_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<PaginatedActivityList>, Integer, Hash)> activities_list_with_http_info(x_account_token, opts)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
|
65
|
+
data, status_code, headers = api_instance.activities_list_with_http_info(x_account_token, opts)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <PaginatedActivityList>
|
69
|
+
rescue MergeATSClient::ApiError => e
|
70
|
+
puts "Error when calling ActivitiesApi->activities_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_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
84
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
85
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
86
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
87
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
88
|
+
| **user_id** | **String** | If provided, will only return activities done by this user. | [optional] |
|
89
|
+
|
90
|
+
### Return type
|
91
|
+
|
92
|
+
[**PaginatedActivityList**](PaginatedActivityList.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
|
+
## activities_retrieve
|
105
|
+
|
106
|
+
> <Activity> activities_retrieve(x_account_token, id, opts)
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
Returns an `Activity` object with the given `id`.
|
111
|
+
|
112
|
+
### Examples
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
require 'time'
|
116
|
+
require 'merge_ats_client'
|
117
|
+
# setup authorization
|
118
|
+
MergeATSClient.configure do |config|
|
119
|
+
# Configure API key authorization: tokenAuth
|
120
|
+
config.api_key['Authorization'] = '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['Authorization'] = 'Bearer'
|
123
|
+
end
|
124
|
+
|
125
|
+
api_instance = MergeATSClient::ActivitiesApi.new
|
126
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
127
|
+
id = TODO # String |
|
128
|
+
opts = {
|
129
|
+
expand: 'user', # 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.activities_retrieve(x_account_token, id, opts)
|
136
|
+
p result
|
137
|
+
rescue MergeATSClient::ApiError => e
|
138
|
+
puts "Error when calling ActivitiesApi->activities_retrieve: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
#### Using the activities_retrieve_with_http_info variant
|
143
|
+
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
145
|
+
|
146
|
+
> <Array(<Activity>, Integer, Hash)> activities_retrieve_with_http_info(x_account_token, id, opts)
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
begin
|
150
|
+
|
151
|
+
data, status_code, headers = api_instance.activities_retrieve_with_http_info(x_account_token, id, opts)
|
152
|
+
p status_code # => 2xx
|
153
|
+
p headers # => { ... }
|
154
|
+
p data # => <Activity>
|
155
|
+
rescue MergeATSClient::ApiError => e
|
156
|
+
puts "Error when calling ActivitiesApi->activities_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
|
+
[**Activity**](Activity.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
|
+
|