Vision 6

findFileInFolder

Returns the ID of a File with the specified name.

findFileInFolder

Returns the ID of a File with the specified name.

Top ↑

Syntax

int findFileInFolder( string api_key, string file_name, int folder_id );

Parameters

api_key (string)

The key required to access the API. See Getting Started for more information.

file_name (string)

File name to search for.

folder_id (int)

ID of Folder to search in.

Return Value

ID of the matched file.

Examples

PHP

$api = new Api($url, 'YOURAPIKEY');

$account_users = $api->invokeMethod('findFileInFolder', 'example.jpg', 123456);

JSON Request

{
    "id": 1,
    "method": "searchContacts",
    "params": [
        "YOURAPIKEY",
        "example.jpg",
        123456
    ]
}

JSON Response

{
    "id": 1,
    "result": 1234567,
    "error": null
}

See Also