Class: MaxApiClient::RawApi

Inherits:
BaseApi
  • Object
show all
Defined in:
lib/max_api_client/raw_api.rb,
sig/max_api_client.rbs

Overview

Low-level grouped access to Max Bot API endpoint families.

Constant Summary

Constants inherited from BaseApi

BaseApi::HTTP_METHODS

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRawApi

Returns a new instance of RawApi.

Parameters:



30
# File 'sig/max_api_client.rbs', line 30

def initialize: (Client) -> void

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/max_api_client/raw_api.rb', line 6

def client
  @client
end

Instance Method Details

#botsBotsApi

Returns:



8
9
10
# File 'lib/max_api_client/raw_api.rb', line 8

def bots
  @bots ||= build_api(BotsApi)
end

#chatsChatsApi

Returns:



12
13
14
# File 'lib/max_api_client/raw_api.rb', line 12

def chats
  @chats ||= build_api(ChatsApi)
end

#deleteObject

Parameters:

  • (String)
  • query: (Object)
  • body: (Object)
  • path_params: (Object)

Returns:

  • (Object)


35
# File 'sig/max_api_client.rbs', line 35

def delete: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped

#getObject

Parameters:

  • (String)
  • query: (Object)
  • path_params: (Object)

Returns:

  • (Object)


31
# File 'sig/max_api_client.rbs', line 31

def get: (String, ?query: untyped, ?path_params: untyped) -> untyped

#messagesMessagesApi

Returns:



16
17
18
# File 'lib/max_api_client/raw_api.rb', line 16

def messages
  @messages ||= build_api(MessagesApi)
end

#patchObject

Parameters:

  • (String)
  • query: (Object)
  • body: (Object)
  • path_params: (Object)

Returns:

  • (Object)


34
# File 'sig/max_api_client.rbs', line 34

def patch: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped

#postObject

Parameters:

  • (String)
  • query: (Object)
  • body: (Object)
  • path_params: (Object)

Returns:

  • (Object)


32
# File 'sig/max_api_client.rbs', line 32

def post: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped

#putObject

Parameters:

  • (String)
  • query: (Object)
  • body: (Object)
  • path_params: (Object)

Returns:

  • (Object)


33
# File 'sig/max_api_client.rbs', line 33

def put: (String, ?query: untyped, ?body: untyped, ?path_params: untyped) -> untyped

#subscriptionsSubscriptionsApi

Returns:



20
21
22
# File 'lib/max_api_client/raw_api.rb', line 20

def subscriptions
  @subscriptions ||= build_api(SubscriptionsApi)
end

#uploadsUploadsApi

Returns:



24
25
26
# File 'lib/max_api_client/raw_api.rb', line 24

def uploads
  @uploads ||= build_api(UploadsApi)
end