ruby/resources/videos/methods/get_character/index.md +0 −49 deleted
File Deleted View Diff
1## Fetch a character.
2
3`videos.get_character(character_id) -> VideoGetCharacterResponse`
4
5**get** `/videos/characters/{character_id}`
6
7Fetch a character.
8
9### Parameters
10
11- `character_id: String`
12
13### Returns
14
15- `class VideoGetCharacterResponse`
16
17 - `id: String`
18
19 Identifier for the character creation cameo.
20
21 - `created_at: Integer`
22
23 Unix timestamp (in seconds) when the character was created.
24
25 - `name: String`
26
27 Display name for the character.
28
29### Example
30
31```ruby
32require "openai"
33
34openai = OpenAI::Client.new(api_key: "My API Key")
35
36response = openai.videos.get_character("char_123")
37
38puts(response)
39```
40
41#### Response
42
43```json
44{
45 "id": "id",
46 "created_at": 0,
47 "name": "name"
48}
49```