Skip to content

getlate-dev/late-ruby

Repository files navigation

late

Late - the Ruby gem for the Late API

API reference for Late. Authenticate with a Bearer API key. Base URL: https://getlate.dev/api

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.1
  • Package version: 0.1.0
  • Generator version: 7.19.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://getlate.dev

Installation

Build a gem

To build the Ruby code into a gem:

gem build late.gemspec

Then either install the gem locally:

gem install ./late-0.1.0.gem

(for development, run gem install --dev ./late-0.1.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'late', '~> 0.1.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/getlate-dev/late-ruby, then add the following in the Gemfile:

gem 'late', :git => 'https://github.com/getlate-dev/late-ruby.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'late'

# Setup authorization
Late.configure do |config|
  # Configure Bearer authorization (JWT): bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } 
end

api_instance = Late::APIKeysApi.new
create_api_key_request = Late::CreateApiKeyRequest.new({name: 'name_example'}) # CreateApiKeyRequest | 

begin
  #Create key
  result = api_instance.create_api_key(create_api_key_request)
  p result
rescue Late::ApiError => e
  puts "Exception when calling APIKeysApi->create_api_key: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://getlate.dev/api

Class Method HTTP request Description
Late::APIKeysApi create_api_key POST /v1/api-keys Create key
Late::APIKeysApi delete_api_key DELETE /v1/api-keys/{keyId} Delete key
Late::APIKeysApi list_api_keys GET /v1/api-keys List keys
Late::AccountGroupsApi create_account_group POST /v1/account-groups Create group
Late::AccountGroupsApi delete_account_group DELETE /v1/account-groups/{groupId} Delete group
Late::AccountGroupsApi list_account_groups GET /v1/account-groups List groups
Late::AccountGroupsApi update_account_group PUT /v1/account-groups/{groupId} Update group
Late::AccountSettingsApi delete_instagram_ice_breakers DELETE /v1/accounts/{accountId}/instagram-ice-breakers Delete IG ice breakers
Late::AccountSettingsApi delete_messenger_menu DELETE /v1/accounts/{accountId}/messenger-menu Delete FB persistent menu
Late::AccountSettingsApi delete_telegram_commands DELETE /v1/accounts/{accountId}/telegram-commands Delete TG bot commands
Late::AccountSettingsApi get_instagram_ice_breakers GET /v1/accounts/{accountId}/instagram-ice-breakers Get IG ice breakers
Late::AccountSettingsApi get_messenger_menu GET /v1/accounts/{accountId}/messenger-menu Get FB persistent menu
Late::AccountSettingsApi get_telegram_commands GET /v1/accounts/{accountId}/telegram-commands Get TG bot commands
Late::AccountSettingsApi set_instagram_ice_breakers PUT /v1/accounts/{accountId}/instagram-ice-breakers Set IG ice breakers
Late::AccountSettingsApi set_messenger_menu PUT /v1/accounts/{accountId}/messenger-menu Set FB persistent menu
Late::AccountSettingsApi set_telegram_commands PUT /v1/accounts/{accountId}/telegram-commands Set TG bot commands
Late::AccountsApi delete_account DELETE /v1/accounts/{accountId} Disconnect account
Late::AccountsApi get_account_health GET /v1/accounts/{accountId}/health Check account health
Late::AccountsApi get_all_accounts_health GET /v1/accounts/health Check accounts health
Late::AccountsApi get_follower_stats GET /v1/accounts/follower-stats Get follower stats
Late::AccountsApi list_accounts GET /v1/accounts List accounts
Late::AccountsApi update_account PUT /v1/accounts/{accountId} Update account
Late::AnalyticsApi get_analytics GET /v1/analytics Get post analytics
Late::AnalyticsApi get_follower_stats GET /v1/accounts/follower-stats Get follower stats
Late::AnalyticsApi get_linked_in_aggregate_analytics GET /v1/accounts/{accountId}/linkedin-aggregate-analytics Get LinkedIn aggregate stats
Late::AnalyticsApi get_linked_in_post_analytics GET /v1/accounts/{accountId}/linkedin-post-analytics Get LinkedIn post stats
Late::AnalyticsApi get_you_tube_daily_views GET /v1/analytics/youtube/daily-views Get YouTube daily views
Late::CommentsApi delete_inbox_comment DELETE /v1/inbox/comments/{postId} Delete comment
Late::CommentsApi get_inbox_post_comments GET /v1/inbox/comments/{postId} Get post comments
Late::CommentsApi hide_inbox_comment POST /v1/inbox/comments/{postId}/{commentId}/hide Hide comment
Late::CommentsApi like_inbox_comment POST /v1/inbox/comments/{postId}/{commentId}/like Like comment
Late::CommentsApi list_inbox_comments GET /v1/inbox/comments List commented posts
Late::CommentsApi reply_to_inbox_post POST /v1/inbox/comments/{postId} Reply to comment
Late::CommentsApi send_private_reply_to_comment POST /v1/inbox/comments/{postId}/{commentId}/private-reply Send private reply
Late::CommentsApi unhide_inbox_comment DELETE /v1/inbox/comments/{postId}/{commentId}/hide Unhide comment
Late::CommentsApi unlike_inbox_comment DELETE /v1/inbox/comments/{postId}/{commentId}/like Unlike comment
Late::ConnectApi complete_telegram_connect PATCH /v1/connect/telegram Check Telegram status
Late::ConnectApi connect_bluesky_credentials POST /v1/connect/bluesky/credentials Connect Bluesky account
Late::ConnectApi get_connect_url GET /v1/connect/{platform} Get OAuth connect URL
Late::ConnectApi get_facebook_pages GET /v1/accounts/{accountId}/facebook-page List Facebook pages
Late::ConnectApi get_gmb_locations GET /v1/accounts/{accountId}/gmb-locations List GBP locations
Late::ConnectApi get_linked_in_organizations GET /v1/accounts/{accountId}/linkedin-organizations List LinkedIn orgs
Late::ConnectApi get_pending_o_auth_data GET /v1/connect/pending-data Get pending OAuth data
Late::ConnectApi get_pinterest_boards GET /v1/accounts/{accountId}/pinterest-boards List Pinterest boards
Late::ConnectApi get_reddit_flairs GET /v1/accounts/{accountId}/reddit-flairs List subreddit flairs
Late::ConnectApi get_reddit_subreddits GET /v1/accounts/{accountId}/reddit-subreddits List Reddit subreddits
Late::ConnectApi get_telegram_connect_status GET /v1/connect/telegram Generate Telegram code
Late::ConnectApi handle_o_auth_callback POST /v1/connect/{platform} Complete OAuth callback
Late::ConnectApi initiate_telegram_connect POST /v1/connect/telegram Connect Telegram directly
Late::ConnectApi list_facebook_pages GET /v1/connect/facebook/select-page List Facebook pages
Late::ConnectApi list_google_business_locations GET /v1/connect/googlebusiness/locations List GBP locations
Late::ConnectApi list_linked_in_organizations GET /v1/connect/linkedin/organizations List LinkedIn orgs
Late::ConnectApi list_pinterest_boards_for_selection GET /v1/connect/pinterest/select-board List Pinterest boards
Late::ConnectApi list_snapchat_profiles GET /v1/connect/snapchat/select-profile List Snapchat profiles
Late::ConnectApi select_facebook_page POST /v1/connect/facebook/select-page Select Facebook page
Late::ConnectApi select_google_business_location POST /v1/connect/googlebusiness/select-location Select GBP location
Late::ConnectApi select_linked_in_organization POST /v1/connect/linkedin/select-organization Select LinkedIn org
Late::ConnectApi select_pinterest_board POST /v1/connect/pinterest/select-board Select Pinterest board
Late::ConnectApi select_snapchat_profile POST /v1/connect/snapchat/select-profile Select Snapchat profile
Late::ConnectApi update_facebook_page PUT /v1/accounts/{accountId}/facebook-page Update Facebook page
Late::ConnectApi update_gmb_location PUT /v1/accounts/{accountId}/gmb-locations Update GBP location
Late::ConnectApi update_linked_in_organization PUT /v1/accounts/{accountId}/linkedin-organization Switch LinkedIn account type
Late::ConnectApi update_pinterest_boards PUT /v1/accounts/{accountId}/pinterest-boards Set default Pinterest board
Late::ConnectApi update_reddit_subreddits PUT /v1/accounts/{accountId}/reddit-subreddits Set default subreddit
Late::GMBAttributesApi get_google_business_attributes GET /v1/accounts/{accountId}/gmb-attributes Get attributes
Late::GMBAttributesApi update_google_business_attributes PUT /v1/accounts/{accountId}/gmb-attributes Update attributes
Late::GMBFoodMenusApi get_google_business_food_menus GET /v1/accounts/{accountId}/gmb-food-menus Get food menus
Late::GMBFoodMenusApi update_google_business_food_menus PUT /v1/accounts/{accountId}/gmb-food-menus Update food menus
Late::GMBLocationDetailsApi get_google_business_location_details GET /v1/accounts/{accountId}/gmb-location-details Get location details
Late::GMBLocationDetailsApi update_google_business_location_details PUT /v1/accounts/{accountId}/gmb-location-details Update location details
Late::GMBMediaApi create_google_business_media POST /v1/accounts/{accountId}/gmb-media Upload photo
Late::GMBMediaApi delete_google_business_media DELETE /v1/accounts/{accountId}/gmb-media Delete photo
Late::GMBMediaApi list_google_business_media GET /v1/accounts/{accountId}/gmb-media List media
Late::GMBPlaceActionsApi create_google_business_place_action POST /v1/accounts/{accountId}/gmb-place-actions Create action link
Late::GMBPlaceActionsApi delete_google_business_place_action DELETE /v1/accounts/{accountId}/gmb-place-actions Delete action link
Late::GMBPlaceActionsApi list_google_business_place_actions GET /v1/accounts/{accountId}/gmb-place-actions List action links
Late::GMBReviewsApi get_google_business_reviews GET /v1/accounts/{accountId}/gmb-reviews Get reviews
Late::InvitesApi create_invite_token POST /v1/invite/tokens Create invite token
Late::LinkedInMentionsApi get_linked_in_mentions GET /v1/accounts/{accountId}/linkedin-mentions Resolve LinkedIn mention
Late::LogsApi get_post_logs GET /v1/posts/{postId}/logs Get post logs
Late::LogsApi list_connection_logs GET /v1/connections/logs List connection logs
Late::LogsApi list_posts_logs GET /v1/posts/logs List publishing logs
Late::MediaApi get_media_presigned_url POST /v1/media/presign Get presigned upload URL
Late::MessagesApi edit_inbox_message PATCH /v1/inbox/conversations/{conversationId}/messages/{messageId} Edit message
Late::MessagesApi get_inbox_conversation GET /v1/inbox/conversations/{conversationId} Get conversation
Late::MessagesApi get_inbox_conversation_messages GET /v1/inbox/conversations/{conversationId}/messages List messages
Late::MessagesApi list_inbox_conversations GET /v1/inbox/conversations List conversations
Late::MessagesApi send_inbox_message POST /v1/inbox/conversations/{conversationId}/messages Send message
Late::MessagesApi update_inbox_conversation PUT /v1/inbox/conversations/{conversationId} Update conversation status
Late::PostsApi bulk_upload_posts POST /v1/posts/bulk-upload Bulk upload from CSV
Late::PostsApi create_post POST /v1/posts Create post
Late::PostsApi delete_post DELETE /v1/posts/{postId} Delete post
Late::PostsApi get_post GET /v1/posts/{postId} Get post
Late::PostsApi list_posts GET /v1/posts List posts
Late::PostsApi retry_post POST /v1/posts/{postId}/retry Retry failed post
Late::PostsApi unpublish_post POST /v1/posts/{postId}/unpublish Unpublish post
Late::PostsApi update_post PUT /v1/posts/{postId} Update post
Late::ProfilesApi create_profile POST /v1/profiles Create profile
Late::ProfilesApi delete_profile DELETE /v1/profiles/{profileId} Delete profile
Late::ProfilesApi get_profile GET /v1/profiles/{profileId} Get profile
Late::ProfilesApi list_profiles GET /v1/profiles List profiles
Late::ProfilesApi update_profile PUT /v1/profiles/{profileId} Update profile
Late::QueueApi create_queue_slot POST /v1/queue/slots Create schedule
Late::QueueApi delete_queue_slot DELETE /v1/queue/slots Delete schedule
Late::QueueApi get_next_queue_slot GET /v1/queue/next-slot Get next available slot
Late::QueueApi list_queue_slots GET /v1/queue/slots List schedules
Late::QueueApi preview_queue GET /v1/queue/preview Preview upcoming slots
Late::QueueApi update_queue_slot PUT /v1/queue/slots Update schedule
Late::RedditSearchApi get_reddit_feed GET /v1/reddit/feed Get subreddit feed
Late::RedditSearchApi search_reddit GET /v1/reddit/search Search posts
Late::ReviewsApi delete_inbox_review_reply DELETE /v1/inbox/reviews/{reviewId}/reply Delete review reply
Late::ReviewsApi list_inbox_reviews GET /v1/inbox/reviews List reviews
Late::ReviewsApi reply_to_inbox_review POST /v1/inbox/reviews/{reviewId}/reply Reply to review
Late::ToolsApi check_instagram_hashtags POST /v1/tools/instagram/hashtag-checker Check IG hashtag bans
Late::ToolsApi download_bluesky_media GET /v1/tools/bluesky/download Download Bluesky media
Late::ToolsApi download_facebook_video GET /v1/tools/facebook/download Download Facebook video
Late::ToolsApi download_instagram_media GET /v1/tools/instagram/download Download Instagram media
Late::ToolsApi download_linked_in_video GET /v1/tools/linkedin/download Download LinkedIn video
Late::ToolsApi download_tik_tok_video GET /v1/tools/tiktok/download Download TikTok video
Late::ToolsApi download_twitter_media GET /v1/tools/twitter/download Download Twitter/X media
Late::ToolsApi download_you_tube_video GET /v1/tools/youtube/download Download YouTube video
Late::ToolsApi get_you_tube_transcript GET /v1/tools/youtube/transcript Get YouTube transcript
Late::UsageApi get_usage_stats GET /v1/usage-stats Get plan and usage stats
Late::UsersApi get_user GET /v1/users/{userId} Get user
Late::UsersApi list_users GET /v1/users List users
Late::WebhooksApi create_webhook_settings POST /v1/webhooks/settings Create webhook
Late::WebhooksApi delete_webhook_settings DELETE /v1/webhooks/settings Delete webhook
Late::WebhooksApi get_webhook_logs GET /v1/webhooks/logs Get delivery logs
Late::WebhooksApi get_webhook_settings GET /v1/webhooks/settings List webhooks
Late::WebhooksApi test_webhook POST /v1/webhooks/test Send test webhook
Late::WebhooksApi update_webhook_settings PUT /v1/webhooks/settings Update webhook

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

connectToken

  • Type: API key
  • API key parameter name: X-Connect-Token
  • Location: HTTP header

About

Late API - Official Ruby SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •