getChatLogsByRoomId
채팅방의 모든 채팅 로그 가져오기
1:1 채널의 채팅 로그를 가져옵니다.
/api/private/chat/getChatLogsByRoomId
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: */*"\
"http://localhost:8080/api/private/chat/getChatLogsByRoomId?chatRoomId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
DefaultApi apiInstance = new DefaultApi();
String chatRoomId = chatRoomId_example; // String |
try {
Object result = apiInstance.getChatLogsByRoomId(chatRoomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getChatLogsByRoomId");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String chatRoomId = chatRoomId_example; // String |
try {
Object result = apiInstance.getChatLogsByRoomId(chatRoomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getChatLogsByRoomId");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
String *chatRoomId = chatRoomId_example; //
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// 채팅방의 모든 채팅 로그 가져오기
[apiInstance getChatLogsByRoomIdWith:chatRoomId
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Api_ = require('__api_');
var defaultClient = Api_.ApiClient.instance;
var api = new Api_.DefaultApi()
var chatRoomId = chatRoomId_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getChatLogsByRoomId(chatRoomId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getChatLogsByRoomIdExample
{
public void main()
{
var apiInstance = new DefaultApi();
var chatRoomId = chatRoomId_example; // String |
try
{
// 채팅방의 모든 채팅 로그 가져오기
Object result = apiInstance.getChatLogsByRoomId(chatRoomId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.getChatLogsByRoomId: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
$chatRoomId = chatRoomId_example; // String |
try {
$result = $api_instance->getChatLogsByRoomId($chatRoomId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getChatLogsByRoomId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $chatRoomId = chatRoomId_example; # String |
eval {
my $result = $api_instance->getChatLogsByRoomId(chatRoomId => $chatRoomId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getChatLogsByRoomId: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
chatRoomId = chatRoomId_example # String |
try:
# 채팅방의 모든 채팅 로그 가져오기
api_response = api_instance.get_chat_logs_by_room_id(chatRoomId)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getChatLogsByRoomId: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| chatRoomId* |
String
Required
|