Class: Lokalise::OAuthClient
- Defined in:
- lib/ruby-lokalise-api/oauth_client.rb
Instance Attribute Summary
Attributes inherited from Client
#enable_compression, #open_timeout, #timeout, #token, #token_header
Instance Method Summary collapse
-
#initialize(token, params = {}) ⇒ OAuthClient
constructor
A new instance of OAuthClient.
Methods inherited from Client
#add_projects_to_group, #add_users_to_group, #branch, #branches, #comment, #comments, #construct_request, #contributor, #contributors, #create_branch, #create_comments, #create_contributors, #create_keys, #create_languages, #create_order, #create_payment_card, #create_project, #create_screenshots, #create_snapshot, #create_task, #create_team_user_billing_details, #create_team_user_group, #create_translation_status, #create_webhook, #destroy_branch, #destroy_comment, #destroy_contributor, #destroy_key, #destroy_keys, #destroy_language, #destroy_payment_card, #destroy_project, #destroy_screenshot, #destroy_snapshot, #destroy_task, #destroy_team_user, #destroy_team_user_group, #destroy_translation_status, #destroy_webhook, #download_files, #empty_project, #files, #format_params, #key, #keys, #language, #merge_branch, #order, #orders, #payment_card, #payment_cards, #project, #project_comments, #project_languages, #projects, #queued_process, #queued_processes, #regenerate_webhook_secret, #remove_projects_from_group, #remove_users_from_group, #restore_snapshot, #screenshot, #screenshots, #segment, #segments, #snapshots, #system_languages, #task, #tasks, #team_user, #team_user_billing_details, #team_user_group, #team_user_groups, #team_users, #teams, #translation, #translation_provider, #translation_providers, #translation_status, #translation_status_colors, #translation_statuses, #translations, #update_branch, #update_contributor, #update_key, #update_keys, #update_language, #update_project, #update_screenshot, #update_segment, #update_task, #update_team_user, #update_team_user_billing_details, #update_team_user_group, #update_translation, #update_translation_status, #update_webhook, #upload_file, #webhook, #webhooks
Constructor Details
#initialize(token, params = {}) ⇒ OAuthClient
Returns a new instance of OAuthClient.
5 6 7 8 9 |
# File 'lib/ruby-lokalise-api/oauth_client.rb', line 5 def initialize(token, params = {}) super(token, params) @token_header = 'Authorization' @token = "Bearer #{@token}" end |