GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenAI::API::Request::File::Retrieve(3) User Contributed Perl Documentation OpenAI::API::Request::File::Retrieve(3)

OpenAI::API::Request::File::Retrieve - retrieve file details

    use OpenAI::API::Request::File::Retrieve;
    # retrieve an existing file id
    my $file_id = OpenAI::API::Request::File::List->new->send->{data}[0]->{id};
    if ($file_id) {
        my $request = OpenAI::API::Request::File::Retrieve->new(
            file_id => $file_id,
        );
        my $res = $request->send();
        my $filename = $res->{filename};
    }

Returns information about a specific file.

new()

send()

Sends the request and returns a data structured similar to the one documented in the API reference.

OpenAI API Reference: Files <https://platform.openai.com/docs/api-reference/files>

2023-03-26 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.