github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/docs/PublishSubscribeApi.md (about)

     1  # \PublishSubscribeApi
     2  
     3  All URIs are relative to *http://localhost*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateChannel**](PublishSubscribeApi.md#CreateChannel) | **Post** /v2/channels | 
     8  [**CreateDataStoreObject**](PublishSubscribeApi.md#CreateDataStoreObject) | **Post** /v2/datastore/channels/{channel_id}/objects | 
     9  [**DeleteChannel**](PublishSubscribeApi.md#DeleteChannel) | **Delete** /v2/channels/{channel_id} | 
    10  [**DeleteDataStoreChannel**](PublishSubscribeApi.md#DeleteDataStoreChannel) | **Delete** /v2/datastore/channels/{channel_id} | 
    11  [**DeleteDataStoreObjectData**](PublishSubscribeApi.md#DeleteDataStoreObjectData) | **Delete** /v2/datastore/channels/{channel_id}/objects/{object_id} | 
    12  [**DeleteDataStoreSession**](PublishSubscribeApi.md#DeleteDataStoreSession) | **Delete** /v2/datastore/channels/{channel_id}/sessions/{session_id} | 
    13  [**GetChannel**](PublishSubscribeApi.md#GetChannel) | **Get** /v2/channels/{channel_id} | 
    14  [**GetChannels**](PublishSubscribeApi.md#GetChannels) | **Get** /v2/channels | 
    15  [**GetDataStoreChannel**](PublishSubscribeApi.md#GetDataStoreChannel) | **Get** /v2/datastore/channels/{channel_id} | 
    16  [**GetDataStoreChannels**](PublishSubscribeApi.md#GetDataStoreChannels) | **Get** /v2/datastore/channels | 
    17  [**GetDataStoreMultiObjectDataLatest**](PublishSubscribeApi.md#GetDataStoreMultiObjectDataLatest) | **Post** /v2/datastore/objects_latest | 
    18  [**GetDataStoreObjectData**](PublishSubscribeApi.md#GetDataStoreObjectData) | **Get** /v2/datastore/channels/{channel_id}/objects/{object_id} | 
    19  [**GetDataStoreObjectDataLatest**](PublishSubscribeApi.md#GetDataStoreObjectDataLatest) | **Get** /v2/datastore/channels/{channel_id}/object_latest | 
    20  [**GetDataStoreObjects**](PublishSubscribeApi.md#GetDataStoreObjects) | **Get** /v2/datastore/channels/{channel_id}/objects | 
    21  [**GetDataStoreSession**](PublishSubscribeApi.md#GetDataStoreSession) | **Get** /v2/datastore/channels/{channel_id}/sessions/{session_id} | 
    22  [**GetDataStoreSessions**](PublishSubscribeApi.md#GetDataStoreSessions) | **Get** /v2/datastore/channels/{channel_id}/sessions | 
    23  [**PublishMessage**](PublishSubscribeApi.md#PublishMessage) | **Post** /v2/messaging | 
    24  [**SubscribeMessage**](PublishSubscribeApi.md#SubscribeMessage) | **Get** /v2/messaging | 
    25  [**UpdateChannel**](PublishSubscribeApi.md#UpdateChannel) | **Patch** /v2/channels/{channel_id} | 
    26  
    27  
    28  
    29  ## CreateChannel
    30  
    31  > SingleChannel CreateChannel(ctx).ChannelProposal(channelProposal).Execute()
    32  
    33  
    34  
    35  ### Example
    36  
    37  ```go
    38  package main
    39  
    40  import (
    41      "context"
    42      "fmt"
    43      "os"
    44      openapiclient "./openapi"
    45  )
    46  
    47  func main() {
    48      channelProposal := *openapiclient.NewChannelProposal("ResourceOwnerId_example", []openapiclient.DisplayInfo{*openapiclient.NewDisplayInfo("Name_example", "Language_example", false)}) // ChannelProposal | 
    49  
    50      configuration := openapiclient.NewConfiguration()
    51      api_client := openapiclient.NewAPIClient(configuration)
    52      resp, r, err := api_client.PublishSubscribeApi.CreateChannel(context.Background()).ChannelProposal(channelProposal).Execute()
    53      if err.Error() != "" {
    54          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.CreateChannel``: %v\n", err)
    55          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    56      }
    57      // response from `CreateChannel`: SingleChannel
    58      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.CreateChannel`: %v\n", resp)
    59  }
    60  ```
    61  
    62  ### Path Parameters
    63  
    64  
    65  
    66  ### Other Parameters
    67  
    68  Other parameters are passed through a pointer to a apiCreateChannelRequest struct via the builder pattern
    69  
    70  
    71  Name | Type | Description  | Notes
    72  ------------- | ------------- | ------------- | -------------
    73   **channelProposal** | [**ChannelProposal**](ChannelProposal.md) |  | 
    74  
    75  ### Return type
    76  
    77  [**SingleChannel**](SingleChannel.md)
    78  
    79  ### Authorization
    80  
    81  [bearerAuth](../README.md#bearerAuth)
    82  
    83  ### HTTP request headers
    84  
    85  - **Content-Type**: application/json
    86  - **Accept**: application/json
    87  
    88  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    89  [[Back to Model list]](../README.md#documentation-for-models)
    90  [[Back to README]](../README.md)
    91  
    92  
    93  ## CreateDataStoreObject
    94  
    95  > SingleDataStoreObject CreateDataStoreObject(ctx, channelId).Body(body).ChannelProtocolId(channelProtocolId).ChannelProtocolVersion(channelProtocolVersion).SessionId(sessionId).Location(location).Timestamp(timestamp).Execute()
    96  
    97  
    98  
    99  ### Example
   100  
   101  ```go
   102  package main
   103  
   104  import (
   105      "context"
   106      "fmt"
   107      "os"
   108      openapiclient "./openapi"
   109  )
   110  
   111  func main() {
   112      channelId := "channelId_example" // string | 
   113      body := os.NewFile(1234, "some_file") // *os.File | 
   114      channelProtocolId := "channelProtocolId_example" // string |  (optional)
   115      channelProtocolVersion := int32(56) // int32 |  (optional)
   116      sessionId := "sessionId_example" // string |  (optional)
   117      location := "location_example" // string |  (optional)
   118      timestamp := "timestamp_example" // string |  (optional)
   119  
   120      configuration := openapiclient.NewConfiguration()
   121      api_client := openapiclient.NewAPIClient(configuration)
   122      resp, r, err := api_client.PublishSubscribeApi.CreateDataStoreObject(context.Background(), channelId).Body(body).ChannelProtocolId(channelProtocolId).ChannelProtocolVersion(channelProtocolVersion).SessionId(sessionId).Location(location).Timestamp(timestamp).Execute()
   123      if err.Error() != "" {
   124          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.CreateDataStoreObject``: %v\n", err)
   125          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   126      }
   127      // response from `CreateDataStoreObject`: SingleDataStoreObject
   128      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.CreateDataStoreObject`: %v\n", resp)
   129  }
   130  ```
   131  
   132  ### Path Parameters
   133  
   134  
   135  Name | Type | Description  | Notes
   136  ------------- | ------------- | ------------- | -------------
   137  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   138  **channelId** | **string** |  | 
   139  
   140  ### Other Parameters
   141  
   142  Other parameters are passed through a pointer to a apiCreateDataStoreObjectRequest struct via the builder pattern
   143  
   144  
   145  Name | Type | Description  | Notes
   146  ------------- | ------------- | ------------- | -------------
   147  
   148   **body** | ***os.File** |  | 
   149   **channelProtocolId** | **string** |  | 
   150   **channelProtocolVersion** | **int32** |  | 
   151   **sessionId** | **string** |  | 
   152   **location** | **string** |  | 
   153   **timestamp** | **string** |  | 
   154  
   155  ### Return type
   156  
   157  [**SingleDataStoreObject**](SingleDataStoreObject.md)
   158  
   159  ### Authorization
   160  
   161  [bearerAuth](../README.md#bearerAuth)
   162  
   163  ### HTTP request headers
   164  
   165  - **Content-Type**: application/octet-stream
   166  - **Accept**: application/json
   167  
   168  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   169  [[Back to Model list]](../README.md#documentation-for-models)
   170  [[Back to README]](../README.md)
   171  
   172  
   173  ## DeleteChannel
   174  
   175  > DeleteChannel(ctx, channelId).Execute()
   176  
   177  
   178  
   179  ### Example
   180  
   181  ```go
   182  package main
   183  
   184  import (
   185      "context"
   186      "fmt"
   187      "os"
   188      openapiclient "./openapi"
   189  )
   190  
   191  func main() {
   192      channelId := "channelId_example" // string | 
   193  
   194      configuration := openapiclient.NewConfiguration()
   195      api_client := openapiclient.NewAPIClient(configuration)
   196      resp, r, err := api_client.PublishSubscribeApi.DeleteChannel(context.Background(), channelId).Execute()
   197      if err.Error() != "" {
   198          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.DeleteChannel``: %v\n", err)
   199          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   200      }
   201  }
   202  ```
   203  
   204  ### Path Parameters
   205  
   206  
   207  Name | Type | Description  | Notes
   208  ------------- | ------------- | ------------- | -------------
   209  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   210  **channelId** | **string** |  | 
   211  
   212  ### Other Parameters
   213  
   214  Other parameters are passed through a pointer to a apiDeleteChannelRequest struct via the builder pattern
   215  
   216  
   217  Name | Type | Description  | Notes
   218  ------------- | ------------- | ------------- | -------------
   219  
   220  
   221  ### Return type
   222  
   223   (empty response body)
   224  
   225  ### Authorization
   226  
   227  [bearerAuth](../README.md#bearerAuth)
   228  
   229  ### HTTP request headers
   230  
   231  - **Content-Type**: Not defined
   232  - **Accept**: Not defined
   233  
   234  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   235  [[Back to Model list]](../README.md#documentation-for-models)
   236  [[Back to README]](../README.md)
   237  
   238  
   239  ## DeleteDataStoreChannel
   240  
   241  > DeleteDataStoreChannel(ctx, channelId).Execute()
   242  
   243  
   244  
   245  ### Example
   246  
   247  ```go
   248  package main
   249  
   250  import (
   251      "context"
   252      "fmt"
   253      "os"
   254      openapiclient "./openapi"
   255  )
   256  
   257  func main() {
   258      channelId := "channelId_example" // string | 
   259  
   260      configuration := openapiclient.NewConfiguration()
   261      api_client := openapiclient.NewAPIClient(configuration)
   262      resp, r, err := api_client.PublishSubscribeApi.DeleteDataStoreChannel(context.Background(), channelId).Execute()
   263      if err.Error() != "" {
   264          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.DeleteDataStoreChannel``: %v\n", err)
   265          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   266      }
   267  }
   268  ```
   269  
   270  ### Path Parameters
   271  
   272  
   273  Name | Type | Description  | Notes
   274  ------------- | ------------- | ------------- | -------------
   275  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   276  **channelId** | **string** |  | 
   277  
   278  ### Other Parameters
   279  
   280  Other parameters are passed through a pointer to a apiDeleteDataStoreChannelRequest struct via the builder pattern
   281  
   282  
   283  Name | Type | Description  | Notes
   284  ------------- | ------------- | ------------- | -------------
   285  
   286  
   287  ### Return type
   288  
   289   (empty response body)
   290  
   291  ### Authorization
   292  
   293  [bearerAuth](../README.md#bearerAuth)
   294  
   295  ### HTTP request headers
   296  
   297  - **Content-Type**: Not defined
   298  - **Accept**: Not defined
   299  
   300  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   301  [[Back to Model list]](../README.md#documentation-for-models)
   302  [[Back to README]](../README.md)
   303  
   304  
   305  ## DeleteDataStoreObjectData
   306  
   307  > MultipleDataStoreObject DeleteDataStoreObjectData(ctx, channelId, objectId).Execute()
   308  
   309  
   310  
   311  ### Example
   312  
   313  ```go
   314  package main
   315  
   316  import (
   317      "context"
   318      "fmt"
   319      "os"
   320      openapiclient "./openapi"
   321  )
   322  
   323  func main() {
   324      channelId := "channelId_example" // string | 
   325      objectId := "objectId_example" // string | 
   326  
   327      configuration := openapiclient.NewConfiguration()
   328      api_client := openapiclient.NewAPIClient(configuration)
   329      resp, r, err := api_client.PublishSubscribeApi.DeleteDataStoreObjectData(context.Background(), channelId, objectId).Execute()
   330      if err.Error() != "" {
   331          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.DeleteDataStoreObjectData``: %v\n", err)
   332          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   333      }
   334      // response from `DeleteDataStoreObjectData`: MultipleDataStoreObject
   335      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.DeleteDataStoreObjectData`: %v\n", resp)
   336  }
   337  ```
   338  
   339  ### Path Parameters
   340  
   341  
   342  Name | Type | Description  | Notes
   343  ------------- | ------------- | ------------- | -------------
   344  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   345  **channelId** | **string** |  | 
   346  **objectId** | **string** |  | 
   347  
   348  ### Other Parameters
   349  
   350  Other parameters are passed through a pointer to a apiDeleteDataStoreObjectDataRequest struct via the builder pattern
   351  
   352  
   353  Name | Type | Description  | Notes
   354  ------------- | ------------- | ------------- | -------------
   355  
   356  
   357  
   358  ### Return type
   359  
   360  [**MultipleDataStoreObject**](MultipleDataStoreObject.md)
   361  
   362  ### Authorization
   363  
   364  [bearerAuth](../README.md#bearerAuth)
   365  
   366  ### HTTP request headers
   367  
   368  - **Content-Type**: Not defined
   369  - **Accept**: application/json
   370  
   371  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   372  [[Back to Model list]](../README.md#documentation-for-models)
   373  [[Back to README]](../README.md)
   374  
   375  
   376  ## DeleteDataStoreSession
   377  
   378  > DeleteDataStoreSession(ctx, channelId, sessionId).Execute()
   379  
   380  
   381  
   382  ### Example
   383  
   384  ```go
   385  package main
   386  
   387  import (
   388      "context"
   389      "fmt"
   390      "os"
   391      openapiclient "./openapi"
   392  )
   393  
   394  func main() {
   395      channelId := "channelId_example" // string | 
   396      sessionId := "sessionId_example" // string | 
   397  
   398      configuration := openapiclient.NewConfiguration()
   399      api_client := openapiclient.NewAPIClient(configuration)
   400      resp, r, err := api_client.PublishSubscribeApi.DeleteDataStoreSession(context.Background(), channelId, sessionId).Execute()
   401      if err.Error() != "" {
   402          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.DeleteDataStoreSession``: %v\n", err)
   403          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   404      }
   405  }
   406  ```
   407  
   408  ### Path Parameters
   409  
   410  
   411  Name | Type | Description  | Notes
   412  ------------- | ------------- | ------------- | -------------
   413  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   414  **channelId** | **string** |  | 
   415  **sessionId** | **string** |  | 
   416  
   417  ### Other Parameters
   418  
   419  Other parameters are passed through a pointer to a apiDeleteDataStoreSessionRequest struct via the builder pattern
   420  
   421  
   422  Name | Type | Description  | Notes
   423  ------------- | ------------- | ------------- | -------------
   424  
   425  
   426  
   427  ### Return type
   428  
   429   (empty response body)
   430  
   431  ### Authorization
   432  
   433  [bearerAuth](../README.md#bearerAuth)
   434  
   435  ### HTTP request headers
   436  
   437  - **Content-Type**: Not defined
   438  - **Accept**: Not defined
   439  
   440  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   441  [[Back to Model list]](../README.md#documentation-for-models)
   442  [[Back to README]](../README.md)
   443  
   444  
   445  ## GetChannel
   446  
   447  > SingleChannel GetChannel(ctx, channelId).Lang(lang).IsDev(isDev).Execute()
   448  
   449  
   450  
   451  ### Example
   452  
   453  ```go
   454  package main
   455  
   456  import (
   457      "context"
   458      "fmt"
   459      "os"
   460      openapiclient "./openapi"
   461  )
   462  
   463  func main() {
   464      channelId := "channelId_example" // string | 
   465      lang := "lang_example" // string | 言語指定 (optional)
   466      isDev := true // bool | 開発者モードの有効・無効 (optional)
   467  
   468      configuration := openapiclient.NewConfiguration()
   469      api_client := openapiclient.NewAPIClient(configuration)
   470      resp, r, err := api_client.PublishSubscribeApi.GetChannel(context.Background(), channelId).Lang(lang).IsDev(isDev).Execute()
   471      if err.Error() != "" {
   472          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetChannel``: %v\n", err)
   473          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   474      }
   475      // response from `GetChannel`: SingleChannel
   476      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetChannel`: %v\n", resp)
   477  }
   478  ```
   479  
   480  ### Path Parameters
   481  
   482  
   483  Name | Type | Description  | Notes
   484  ------------- | ------------- | ------------- | -------------
   485  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   486  **channelId** | **string** |  | 
   487  
   488  ### Other Parameters
   489  
   490  Other parameters are passed through a pointer to a apiGetChannelRequest struct via the builder pattern
   491  
   492  
   493  Name | Type | Description  | Notes
   494  ------------- | ------------- | ------------- | -------------
   495  
   496   **lang** | **string** | 言語指定 | 
   497   **isDev** | **bool** | 開発者モードの有効・無効 | 
   498  
   499  ### Return type
   500  
   501  [**SingleChannel**](SingleChannel.md)
   502  
   503  ### Authorization
   504  
   505  [bearerAuth](../README.md#bearerAuth)
   506  
   507  ### HTTP request headers
   508  
   509  - **Content-Type**: Not defined
   510  - **Accept**: application/json
   511  
   512  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   513  [[Back to Model list]](../README.md#documentation-for-models)
   514  [[Back to README]](../README.md)
   515  
   516  
   517  ## GetChannels
   518  
   519  > MultipleChannel GetChannels(ctx).Name(name).ResourceOwnerId(resourceOwnerId).Label(label).ChannelProtocol(channelProtocol).Limit(limit).Offset(offset).Order(order).OrderBy(orderBy).Lang(lang).IsDev(isDev).IsPublic(isPublic).MessagingEnabled(messagingEnabled).DatastoreEnabled(datastoreEnabled).MessagingPersisted(messagingPersisted).Execute()
   520  
   521  
   522  
   523  ### Example
   524  
   525  ```go
   526  package main
   527  
   528  import (
   529      "context"
   530      "fmt"
   531      "os"
   532      openapiclient "./openapi"
   533  )
   534  
   535  func main() {
   536      name := "name_example" // string | 名前での部分一致検索 (optional)
   537      resourceOwnerId := TODO // string |  (optional)
   538      label := "label_example" // string |  (optional)
   539      channelProtocol := "channelProtocol_example" // string |  (optional)
   540      limit := int64(789) // int64 | ページネーションのうち、上位何件取得するか (optional)
   541      offset := int64(789) // int64 | ページネーションのうち、何件読み飛ばすか (optional)
   542      order := "order_example" // string | ソート順序。 order_byで指定したkeyそれぞれに対して昇順、降順を配列で指定 (optional)
   543      orderBy := "orderBy_example" // string | ソート対象。指定順に高優先でのソートとなる (optional)
   544      lang := "lang_example" // string | 言語指定 (optional)
   545      isDev := true // bool | 開発者モードの有効・無効 (optional)
   546      isPublic := "isPublic_example" // string | デバイスの公開・非公開 (optional)
   547      messagingEnabled := "messagingEnabled_example" // string |  (optional)
   548      datastoreEnabled := "datastoreEnabled_example" // string |  (optional)
   549      messagingPersisted := "messagingPersisted_example" // string |  (optional)
   550  
   551      configuration := openapiclient.NewConfiguration()
   552      api_client := openapiclient.NewAPIClient(configuration)
   553      resp, r, err := api_client.PublishSubscribeApi.GetChannels(context.Background()).Name(name).ResourceOwnerId(resourceOwnerId).Label(label).ChannelProtocol(channelProtocol).Limit(limit).Offset(offset).Order(order).OrderBy(orderBy).Lang(lang).IsDev(isDev).IsPublic(isPublic).MessagingEnabled(messagingEnabled).DatastoreEnabled(datastoreEnabled).MessagingPersisted(messagingPersisted).Execute()
   554      if err.Error() != "" {
   555          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetChannels``: %v\n", err)
   556          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   557      }
   558      // response from `GetChannels`: MultipleChannel
   559      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetChannels`: %v\n", resp)
   560  }
   561  ```
   562  
   563  ### Path Parameters
   564  
   565  
   566  
   567  ### Other Parameters
   568  
   569  Other parameters are passed through a pointer to a apiGetChannelsRequest struct via the builder pattern
   570  
   571  
   572  Name | Type | Description  | Notes
   573  ------------- | ------------- | ------------- | -------------
   574   **name** | **string** | 名前での部分一致検索 | 
   575   **resourceOwnerId** | [**string**](string.md) |  | 
   576   **label** | **string** |  | 
   577   **channelProtocol** | **string** |  | 
   578   **limit** | **int64** | ページネーションのうち、上位何件取得するか | 
   579   **offset** | **int64** | ページネーションのうち、何件読み飛ばすか | 
   580   **order** | **string** | ソート順序。 order_byで指定したkeyそれぞれに対して昇順、降順を配列で指定 | 
   581   **orderBy** | **string** | ソート対象。指定順に高優先でのソートとなる | 
   582   **lang** | **string** | 言語指定 | 
   583   **isDev** | **bool** | 開発者モードの有効・無効 | 
   584   **isPublic** | **string** | デバイスの公開・非公開 | 
   585   **messagingEnabled** | **string** |  | 
   586   **datastoreEnabled** | **string** |  | 
   587   **messagingPersisted** | **string** |  | 
   588  
   589  ### Return type
   590  
   591  [**MultipleChannel**](MultipleChannel.md)
   592  
   593  ### Authorization
   594  
   595  [bearerAuth](../README.md#bearerAuth)
   596  
   597  ### HTTP request headers
   598  
   599  - **Content-Type**: Not defined
   600  - **Accept**: application/json
   601  
   602  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   603  [[Back to Model list]](../README.md#documentation-for-models)
   604  [[Back to README]](../README.md)
   605  
   606  
   607  ## GetDataStoreChannel
   608  
   609  > SingleDataStoreChannel GetDataStoreChannel(ctx, channelId).Execute()
   610  
   611  
   612  
   613  ### Example
   614  
   615  ```go
   616  package main
   617  
   618  import (
   619      "context"
   620      "fmt"
   621      "os"
   622      openapiclient "./openapi"
   623  )
   624  
   625  func main() {
   626      channelId := "channelId_example" // string | 
   627  
   628      configuration := openapiclient.NewConfiguration()
   629      api_client := openapiclient.NewAPIClient(configuration)
   630      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreChannel(context.Background(), channelId).Execute()
   631      if err.Error() != "" {
   632          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreChannel``: %v\n", err)
   633          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   634      }
   635      // response from `GetDataStoreChannel`: SingleDataStoreChannel
   636      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreChannel`: %v\n", resp)
   637  }
   638  ```
   639  
   640  ### Path Parameters
   641  
   642  
   643  Name | Type | Description  | Notes
   644  ------------- | ------------- | ------------- | -------------
   645  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   646  **channelId** | **string** |  | 
   647  
   648  ### Other Parameters
   649  
   650  Other parameters are passed through a pointer to a apiGetDataStoreChannelRequest struct via the builder pattern
   651  
   652  
   653  Name | Type | Description  | Notes
   654  ------------- | ------------- | ------------- | -------------
   655  
   656  
   657  ### Return type
   658  
   659  [**SingleDataStoreChannel**](SingleDataStoreChannel.md)
   660  
   661  ### Authorization
   662  
   663  [bearerAuth](../README.md#bearerAuth)
   664  
   665  ### HTTP request headers
   666  
   667  - **Content-Type**: Not defined
   668  - **Accept**: application/json
   669  
   670  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   671  [[Back to Model list]](../README.md#documentation-for-models)
   672  [[Back to README]](../README.md)
   673  
   674  
   675  ## GetDataStoreChannels
   676  
   677  > MultipleDataStoreChannel GetDataStoreChannels(ctx).ChannelProtocolId(channelProtocolId).Limit(limit).Offset(offset).Order(order).OrderBy(orderBy).Execute()
   678  
   679  
   680  
   681  ### Example
   682  
   683  ```go
   684  package main
   685  
   686  import (
   687      "context"
   688      "fmt"
   689      "os"
   690      openapiclient "./openapi"
   691  )
   692  
   693  func main() {
   694      channelProtocolId := "channelProtocolId_example" // string |  (optional)
   695      limit := int64(789) // int64 | ページネーションのうち、上位何件取得するか (optional)
   696      offset := int64(789) // int64 | ページネーションのうち、何件読み飛ばすか (optional)
   697      order := "order_example" // string | ソート順序。 order_byで指定したkeyそれぞれに対して昇順、降順を配列で指定 (optional)
   698      orderBy := "orderBy_example" // string | ソート対象。指定順に高優先でのソートとなる (optional)
   699  
   700      configuration := openapiclient.NewConfiguration()
   701      api_client := openapiclient.NewAPIClient(configuration)
   702      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreChannels(context.Background()).ChannelProtocolId(channelProtocolId).Limit(limit).Offset(offset).Order(order).OrderBy(orderBy).Execute()
   703      if err.Error() != "" {
   704          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreChannels``: %v\n", err)
   705          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   706      }
   707      // response from `GetDataStoreChannels`: MultipleDataStoreChannel
   708      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreChannels`: %v\n", resp)
   709  }
   710  ```
   711  
   712  ### Path Parameters
   713  
   714  
   715  
   716  ### Other Parameters
   717  
   718  Other parameters are passed through a pointer to a apiGetDataStoreChannelsRequest struct via the builder pattern
   719  
   720  
   721  Name | Type | Description  | Notes
   722  ------------- | ------------- | ------------- | -------------
   723   **channelProtocolId** | **string** |  | 
   724   **limit** | **int64** | ページネーションのうち、上位何件取得するか | 
   725   **offset** | **int64** | ページネーションのうち、何件読み飛ばすか | 
   726   **order** | **string** | ソート順序。 order_byで指定したkeyそれぞれに対して昇順、降順を配列で指定 | 
   727   **orderBy** | **string** | ソート対象。指定順に高優先でのソートとなる | 
   728  
   729  ### Return type
   730  
   731  [**MultipleDataStoreChannel**](MultipleDataStoreChannel.md)
   732  
   733  ### Authorization
   734  
   735  [bearerAuth](../README.md#bearerAuth)
   736  
   737  ### HTTP request headers
   738  
   739  - **Content-Type**: Not defined
   740  - **Accept**: application/json
   741  
   742  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   743  [[Back to Model list]](../README.md#documentation-for-models)
   744  [[Back to README]](../README.md)
   745  
   746  
   747  ## GetDataStoreMultiObjectDataLatest
   748  
   749  > MultipleDataStoreDataLatest GetDataStoreMultiObjectDataLatest(ctx).Ids(ids).Execute()
   750  
   751  
   752  
   753  ### Example
   754  
   755  ```go
   756  package main
   757  
   758  import (
   759      "context"
   760      "fmt"
   761      "os"
   762      openapiclient "./openapi"
   763  )
   764  
   765  func main() {
   766      ids := *openapiclient.NewIds() // Ids | 
   767  
   768      configuration := openapiclient.NewConfiguration()
   769      api_client := openapiclient.NewAPIClient(configuration)
   770      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreMultiObjectDataLatest(context.Background()).Ids(ids).Execute()
   771      if err.Error() != "" {
   772          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreMultiObjectDataLatest``: %v\n", err)
   773          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   774      }
   775      // response from `GetDataStoreMultiObjectDataLatest`: MultipleDataStoreDataLatest
   776      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreMultiObjectDataLatest`: %v\n", resp)
   777  }
   778  ```
   779  
   780  ### Path Parameters
   781  
   782  
   783  
   784  ### Other Parameters
   785  
   786  Other parameters are passed through a pointer to a apiGetDataStoreMultiObjectDataLatestRequest struct via the builder pattern
   787  
   788  
   789  Name | Type | Description  | Notes
   790  ------------- | ------------- | ------------- | -------------
   791   **ids** | [**Ids**](Ids.md) |  | 
   792  
   793  ### Return type
   794  
   795  [**MultipleDataStoreDataLatest**](MultipleDataStoreDataLatest.md)
   796  
   797  ### Authorization
   798  
   799  [bearerAuth](../README.md#bearerAuth)
   800  
   801  ### HTTP request headers
   802  
   803  - **Content-Type**: application/json
   804  - **Accept**: application/json
   805  
   806  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   807  [[Back to Model list]](../README.md#documentation-for-models)
   808  [[Back to README]](../README.md)
   809  
   810  
   811  ## GetDataStoreObjectData
   812  
   813  > interface{} GetDataStoreObjectData(ctx, channelId, objectId).PackerFormat(packerFormat).Execute()
   814  
   815  
   816  
   817  ### Example
   818  
   819  ```go
   820  package main
   821  
   822  import (
   823      "context"
   824      "fmt"
   825      "os"
   826      openapiclient "./openapi"
   827  )
   828  
   829  func main() {
   830      channelId := "channelId_example" // string | 
   831      objectId := "objectId_example" // string | 
   832      packerFormat := "packerFormat_example" // string |  (optional)
   833  
   834      configuration := openapiclient.NewConfiguration()
   835      api_client := openapiclient.NewAPIClient(configuration)
   836      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreObjectData(context.Background(), channelId, objectId).PackerFormat(packerFormat).Execute()
   837      if err.Error() != "" {
   838          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreObjectData``: %v\n", err)
   839          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   840      }
   841      // response from `GetDataStoreObjectData`: interface{}
   842      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreObjectData`: %v\n", resp)
   843  }
   844  ```
   845  
   846  ### Path Parameters
   847  
   848  
   849  Name | Type | Description  | Notes
   850  ------------- | ------------- | ------------- | -------------
   851  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   852  **channelId** | **string** |  | 
   853  **objectId** | **string** |  | 
   854  
   855  ### Other Parameters
   856  
   857  Other parameters are passed through a pointer to a apiGetDataStoreObjectDataRequest struct via the builder pattern
   858  
   859  
   860  Name | Type | Description  | Notes
   861  ------------- | ------------- | ------------- | -------------
   862  
   863  
   864   **packerFormat** | **string** |  | 
   865  
   866  ### Return type
   867  
   868  **interface{}**
   869  
   870  ### Authorization
   871  
   872  [bearerAuth](../README.md#bearerAuth)
   873  
   874  ### HTTP request headers
   875  
   876  - **Content-Type**: Not defined
   877  - **Accept**: application/json, text/plain
   878  
   879  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   880  [[Back to Model list]](../README.md#documentation-for-models)
   881  [[Back to README]](../README.md)
   882  
   883  
   884  ## GetDataStoreObjectDataLatest
   885  
   886  > interface{} GetDataStoreObjectDataLatest(ctx, channelId).PackerFormat(packerFormat).Execute()
   887  
   888  
   889  
   890  ### Example
   891  
   892  ```go
   893  package main
   894  
   895  import (
   896      "context"
   897      "fmt"
   898      "os"
   899      openapiclient "./openapi"
   900  )
   901  
   902  func main() {
   903      channelId := "channelId_example" // string | 
   904      packerFormat := "packerFormat_example" // string |  (optional)
   905  
   906      configuration := openapiclient.NewConfiguration()
   907      api_client := openapiclient.NewAPIClient(configuration)
   908      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreObjectDataLatest(context.Background(), channelId).PackerFormat(packerFormat).Execute()
   909      if err.Error() != "" {
   910          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreObjectDataLatest``: %v\n", err)
   911          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   912      }
   913      // response from `GetDataStoreObjectDataLatest`: interface{}
   914      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreObjectDataLatest`: %v\n", resp)
   915  }
   916  ```
   917  
   918  ### Path Parameters
   919  
   920  
   921  Name | Type | Description  | Notes
   922  ------------- | ------------- | ------------- | -------------
   923  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
   924  **channelId** | **string** |  | 
   925  
   926  ### Other Parameters
   927  
   928  Other parameters are passed through a pointer to a apiGetDataStoreObjectDataLatestRequest struct via the builder pattern
   929  
   930  
   931  Name | Type | Description  | Notes
   932  ------------- | ------------- | ------------- | -------------
   933  
   934   **packerFormat** | **string** |  | 
   935  
   936  ### Return type
   937  
   938  **interface{}**
   939  
   940  ### Authorization
   941  
   942  [bearerAuth](../README.md#bearerAuth)
   943  
   944  ### HTTP request headers
   945  
   946  - **Content-Type**: Not defined
   947  - **Accept**: application/json, application/octet-stream, application/xml, text/plain
   948  
   949  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
   950  [[Back to Model list]](../README.md#documentation-for-models)
   951  [[Back to README]](../README.md)
   952  
   953  
   954  ## GetDataStoreObjects
   955  
   956  > MultipleDataStoreObject GetDataStoreObjects(ctx, channelId).SessionId(sessionId).ChannelProtocolVersion(channelProtocolVersion).ChannelProtocolId(channelProtocolId).Label(label).Location(location).LocationRange(locationRange).Timestamp(timestamp).TimestampRange(timestampRange).Ascending(ascending).Offset(offset).Limit(limit).Execute()
   957  
   958  
   959  
   960  ### Example
   961  
   962  ```go
   963  package main
   964  
   965  import (
   966      "context"
   967      "fmt"
   968      "os"
   969      openapiclient "./openapi"
   970  )
   971  
   972  func main() {
   973      channelId := "channelId_example" // string | 
   974      sessionId := "sessionId_example" // string |  (optional)
   975      channelProtocolVersion := int32(56) // int32 |  (optional)
   976      channelProtocolId := "channelProtocolId_example" // string |  (optional)
   977      label := "label_example" // string |  (optional)
   978      location := "location_example" // string |  (optional)
   979      locationRange := "locationRange_example" // string |  (optional)
   980      timestamp := "timestamp_example" // string |  (optional)
   981      timestampRange := "timestampRange_example" // string |  (optional)
   982      ascending := true // bool |  (optional)
   983      offset := int64(789) // int64 | ページネーションのうち、何件読み飛ばすか (optional)
   984      limit := int64(789) // int64 | ページネーションのうち、上位何件取得するか (optional)
   985  
   986      configuration := openapiclient.NewConfiguration()
   987      api_client := openapiclient.NewAPIClient(configuration)
   988      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreObjects(context.Background(), channelId).SessionId(sessionId).ChannelProtocolVersion(channelProtocolVersion).ChannelProtocolId(channelProtocolId).Label(label).Location(location).LocationRange(locationRange).Timestamp(timestamp).TimestampRange(timestampRange).Ascending(ascending).Offset(offset).Limit(limit).Execute()
   989      if err.Error() != "" {
   990          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreObjects``: %v\n", err)
   991          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
   992      }
   993      // response from `GetDataStoreObjects`: MultipleDataStoreObject
   994      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreObjects`: %v\n", resp)
   995  }
   996  ```
   997  
   998  ### Path Parameters
   999  
  1000  
  1001  Name | Type | Description  | Notes
  1002  ------------- | ------------- | ------------- | -------------
  1003  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
  1004  **channelId** | **string** |  | 
  1005  
  1006  ### Other Parameters
  1007  
  1008  Other parameters are passed through a pointer to a apiGetDataStoreObjectsRequest struct via the builder pattern
  1009  
  1010  
  1011  Name | Type | Description  | Notes
  1012  ------------- | ------------- | ------------- | -------------
  1013  
  1014   **sessionId** | **string** |  | 
  1015   **channelProtocolVersion** | **int32** |  | 
  1016   **channelProtocolId** | **string** |  | 
  1017   **label** | **string** |  | 
  1018   **location** | **string** |  | 
  1019   **locationRange** | **string** |  | 
  1020   **timestamp** | **string** |  | 
  1021   **timestampRange** | **string** |  | 
  1022   **ascending** | **bool** |  | 
  1023   **offset** | **int64** | ページネーションのうち、何件読み飛ばすか | 
  1024   **limit** | **int64** | ページネーションのうち、上位何件取得するか | 
  1025  
  1026  ### Return type
  1027  
  1028  [**MultipleDataStoreObject**](MultipleDataStoreObject.md)
  1029  
  1030  ### Authorization
  1031  
  1032  [bearerAuth](../README.md#bearerAuth)
  1033  
  1034  ### HTTP request headers
  1035  
  1036  - **Content-Type**: Not defined
  1037  - **Accept**: application/json
  1038  
  1039  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
  1040  [[Back to Model list]](../README.md#documentation-for-models)
  1041  [[Back to README]](../README.md)
  1042  
  1043  
  1044  ## GetDataStoreSession
  1045  
  1046  > SingleSession GetDataStoreSession(ctx, channelId, sessionId).Execute()
  1047  
  1048  
  1049  
  1050  ### Example
  1051  
  1052  ```go
  1053  package main
  1054  
  1055  import (
  1056      "context"
  1057      "fmt"
  1058      "os"
  1059      openapiclient "./openapi"
  1060  )
  1061  
  1062  func main() {
  1063      channelId := "channelId_example" // string | 
  1064      sessionId := "sessionId_example" // string | 
  1065  
  1066      configuration := openapiclient.NewConfiguration()
  1067      api_client := openapiclient.NewAPIClient(configuration)
  1068      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreSession(context.Background(), channelId, sessionId).Execute()
  1069      if err.Error() != "" {
  1070          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreSession``: %v\n", err)
  1071          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  1072      }
  1073      // response from `GetDataStoreSession`: SingleSession
  1074      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreSession`: %v\n", resp)
  1075  }
  1076  ```
  1077  
  1078  ### Path Parameters
  1079  
  1080  
  1081  Name | Type | Description  | Notes
  1082  ------------- | ------------- | ------------- | -------------
  1083  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
  1084  **channelId** | **string** |  | 
  1085  **sessionId** | **string** |  | 
  1086  
  1087  ### Other Parameters
  1088  
  1089  Other parameters are passed through a pointer to a apiGetDataStoreSessionRequest struct via the builder pattern
  1090  
  1091  
  1092  Name | Type | Description  | Notes
  1093  ------------- | ------------- | ------------- | -------------
  1094  
  1095  
  1096  
  1097  ### Return type
  1098  
  1099  [**SingleSession**](SingleSession.md)
  1100  
  1101  ### Authorization
  1102  
  1103  [bearerAuth](../README.md#bearerAuth)
  1104  
  1105  ### HTTP request headers
  1106  
  1107  - **Content-Type**: Not defined
  1108  - **Accept**: application/json
  1109  
  1110  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
  1111  [[Back to Model list]](../README.md#documentation-for-models)
  1112  [[Back to README]](../README.md)
  1113  
  1114  
  1115  ## GetDataStoreSessions
  1116  
  1117  > MultipleSession GetDataStoreSessions(ctx, channelId).Timestamp(timestamp).TimestampRange(timestampRange).LocationRange(locationRange).Location(location).Ascending(ascending).Offset(offset).Limit(limit).Execute()
  1118  
  1119  
  1120  
  1121  ### Example
  1122  
  1123  ```go
  1124  package main
  1125  
  1126  import (
  1127      "context"
  1128      "fmt"
  1129      "os"
  1130      openapiclient "./openapi"
  1131  )
  1132  
  1133  func main() {
  1134      channelId := "channelId_example" // string | 
  1135      timestamp := "timestamp_example" // string |  (optional)
  1136      timestampRange := "timestampRange_example" // string |  (optional)
  1137      locationRange := "locationRange_example" // string |  (optional)
  1138      location := "location_example" // string |  (optional)
  1139      ascending := true // bool |  (optional)
  1140      offset := int64(789) // int64 | ページネーションのうち、何件読み飛ばすか (optional)
  1141      limit := int64(789) // int64 | ページネーションのうち、上位何件取得するか (optional)
  1142  
  1143      configuration := openapiclient.NewConfiguration()
  1144      api_client := openapiclient.NewAPIClient(configuration)
  1145      resp, r, err := api_client.PublishSubscribeApi.GetDataStoreSessions(context.Background(), channelId).Timestamp(timestamp).TimestampRange(timestampRange).LocationRange(locationRange).Location(location).Ascending(ascending).Offset(offset).Limit(limit).Execute()
  1146      if err.Error() != "" {
  1147          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.GetDataStoreSessions``: %v\n", err)
  1148          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  1149      }
  1150      // response from `GetDataStoreSessions`: MultipleSession
  1151      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.GetDataStoreSessions`: %v\n", resp)
  1152  }
  1153  ```
  1154  
  1155  ### Path Parameters
  1156  
  1157  
  1158  Name | Type | Description  | Notes
  1159  ------------- | ------------- | ------------- | -------------
  1160  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
  1161  **channelId** | **string** |  | 
  1162  
  1163  ### Other Parameters
  1164  
  1165  Other parameters are passed through a pointer to a apiGetDataStoreSessionsRequest struct via the builder pattern
  1166  
  1167  
  1168  Name | Type | Description  | Notes
  1169  ------------- | ------------- | ------------- | -------------
  1170  
  1171   **timestamp** | **string** |  | 
  1172   **timestampRange** | **string** |  | 
  1173   **locationRange** | **string** |  | 
  1174   **location** | **string** |  | 
  1175   **ascending** | **bool** |  | 
  1176   **offset** | **int64** | ページネーションのうち、何件読み飛ばすか | 
  1177   **limit** | **int64** | ページネーションのうち、上位何件取得するか | 
  1178  
  1179  ### Return type
  1180  
  1181  [**MultipleSession**](MultipleSession.md)
  1182  
  1183  ### Authorization
  1184  
  1185  [bearerAuth](../README.md#bearerAuth)
  1186  
  1187  ### HTTP request headers
  1188  
  1189  - **Content-Type**: Not defined
  1190  - **Accept**: application/json
  1191  
  1192  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
  1193  [[Back to Model list]](../README.md#documentation-for-models)
  1194  [[Back to README]](../README.md)
  1195  
  1196  
  1197  ## PublishMessage
  1198  
  1199  > PublishMessage(ctx).ChannelId(channelId).PackerFormat(packerFormat).Body(body).Execute()
  1200  
  1201  
  1202  
  1203  ### Example
  1204  
  1205  ```go
  1206  package main
  1207  
  1208  import (
  1209      "context"
  1210      "fmt"
  1211      "os"
  1212      openapiclient "./openapi"
  1213  )
  1214  
  1215  func main() {
  1216      channelId := "channelId_example" // string | 
  1217      packerFormat := "packerFormat_example" // string |  (optional)
  1218      body := interface{}(987) // interface{} |  (optional)
  1219  
  1220      configuration := openapiclient.NewConfiguration()
  1221      api_client := openapiclient.NewAPIClient(configuration)
  1222      resp, r, err := api_client.PublishSubscribeApi.PublishMessage(context.Background()).ChannelId(channelId).PackerFormat(packerFormat).Body(body).Execute()
  1223      if err.Error() != "" {
  1224          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.PublishMessage``: %v\n", err)
  1225          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  1226      }
  1227  }
  1228  ```
  1229  
  1230  ### Path Parameters
  1231  
  1232  
  1233  
  1234  ### Other Parameters
  1235  
  1236  Other parameters are passed through a pointer to a apiPublishMessageRequest struct via the builder pattern
  1237  
  1238  
  1239  Name | Type | Description  | Notes
  1240  ------------- | ------------- | ------------- | -------------
  1241   **channelId** | **string** |  | 
  1242   **packerFormat** | **string** |  | 
  1243   **body** | **interface{}** |  | 
  1244  
  1245  ### Return type
  1246  
  1247   (empty response body)
  1248  
  1249  ### Authorization
  1250  
  1251  [bearerAuth](../README.md#bearerAuth)
  1252  
  1253  ### HTTP request headers
  1254  
  1255  - **Content-Type**: application/json, application/octet-stream, application/xml, text/plain
  1256  - **Accept**: Not defined
  1257  
  1258  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
  1259  [[Back to Model list]](../README.md#documentation-for-models)
  1260  [[Back to README]](../README.md)
  1261  
  1262  
  1263  ## SubscribeMessage
  1264  
  1265  > *os.File SubscribeMessage(ctx).ChannelId(channelId).PackerFormat(packerFormat).Execute()
  1266  
  1267  
  1268  
  1269  ### Example
  1270  
  1271  ```go
  1272  package main
  1273  
  1274  import (
  1275      "context"
  1276      "fmt"
  1277      "os"
  1278      openapiclient "./openapi"
  1279  )
  1280  
  1281  func main() {
  1282      channelId := "channelId_example" // string | 
  1283      packerFormat := "packerFormat_example" // string |  (optional)
  1284  
  1285      configuration := openapiclient.NewConfiguration()
  1286      api_client := openapiclient.NewAPIClient(configuration)
  1287      resp, r, err := api_client.PublishSubscribeApi.SubscribeMessage(context.Background()).ChannelId(channelId).PackerFormat(packerFormat).Execute()
  1288      if err.Error() != "" {
  1289          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.SubscribeMessage``: %v\n", err)
  1290          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  1291      }
  1292      // response from `SubscribeMessage`: *os.File
  1293      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.SubscribeMessage`: %v\n", resp)
  1294  }
  1295  ```
  1296  
  1297  ### Path Parameters
  1298  
  1299  
  1300  
  1301  ### Other Parameters
  1302  
  1303  Other parameters are passed through a pointer to a apiSubscribeMessageRequest struct via the builder pattern
  1304  
  1305  
  1306  Name | Type | Description  | Notes
  1307  ------------- | ------------- | ------------- | -------------
  1308   **channelId** | **string** |  | 
  1309   **packerFormat** | **string** |  | 
  1310  
  1311  ### Return type
  1312  
  1313  [***os.File**](*os.File.md)
  1314  
  1315  ### Authorization
  1316  
  1317  [bearerAuth](../README.md#bearerAuth)
  1318  
  1319  ### HTTP request headers
  1320  
  1321  - **Content-Type**: Not defined
  1322  - **Accept**: application/octet-stream
  1323  
  1324  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
  1325  [[Back to Model list]](../README.md#documentation-for-models)
  1326  [[Back to README]](../README.md)
  1327  
  1328  
  1329  ## UpdateChannel
  1330  
  1331  > MultipleChannel UpdateChannel(ctx, channelId).ChannelUpdateProposal(channelUpdateProposal).Execute()
  1332  
  1333  
  1334  
  1335  ### Example
  1336  
  1337  ```go
  1338  package main
  1339  
  1340  import (
  1341      "context"
  1342      "fmt"
  1343      "os"
  1344      openapiclient "./openapi"
  1345  )
  1346  
  1347  func main() {
  1348      channelId := "channelId_example" // string | 
  1349      channelUpdateProposal := *openapiclient.NewChannelUpdateProposal([]openapiclient.DisplayInfo{*openapiclient.NewDisplayInfo("Name_example", "Language_example", false)}) // ChannelUpdateProposal | 
  1350  
  1351      configuration := openapiclient.NewConfiguration()
  1352      api_client := openapiclient.NewAPIClient(configuration)
  1353      resp, r, err := api_client.PublishSubscribeApi.UpdateChannel(context.Background(), channelId).ChannelUpdateProposal(channelUpdateProposal).Execute()
  1354      if err.Error() != "" {
  1355          fmt.Fprintf(os.Stderr, "Error when calling `PublishSubscribeApi.UpdateChannel``: %v\n", err)
  1356          fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  1357      }
  1358      // response from `UpdateChannel`: MultipleChannel
  1359      fmt.Fprintf(os.Stdout, "Response from `PublishSubscribeApi.UpdateChannel`: %v\n", resp)
  1360  }
  1361  ```
  1362  
  1363  ### Path Parameters
  1364  
  1365  
  1366  Name | Type | Description  | Notes
  1367  ------------- | ------------- | ------------- | -------------
  1368  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
  1369  **channelId** | **string** |  | 
  1370  
  1371  ### Other Parameters
  1372  
  1373  Other parameters are passed through a pointer to a apiUpdateChannelRequest struct via the builder pattern
  1374  
  1375  
  1376  Name | Type | Description  | Notes
  1377  ------------- | ------------- | ------------- | -------------
  1378  
  1379   **channelUpdateProposal** | [**ChannelUpdateProposal**](ChannelUpdateProposal.md) |  | 
  1380  
  1381  ### Return type
  1382  
  1383  [**MultipleChannel**](MultipleChannel.md)
  1384  
  1385  ### Authorization
  1386  
  1387  [bearerAuth](../README.md#bearerAuth)
  1388  
  1389  ### HTTP request headers
  1390  
  1391  - **Content-Type**: application/json
  1392  - **Accept**: application/json
  1393  
  1394  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
  1395  [[Back to Model list]](../README.md#documentation-for-models)
  1396  [[Back to README]](../README.md)
  1397