get_entry()

Get MetaData for file/folder

get_entry()

This method will set the account to be used for other API calls.

Parameters

Name
Type
Description

$id

string

File / Folder ID

Return

Name
Type
Description

$node

CachedNode

The cached object for the requested file or folder.

Usage

WPCP_ONEDRIVE_API::set_account_by_id('8c9bacda0-d8d8-4b22-b634-7b5281687575');
WPCP_ONEDRIVE_API::set_drive_by_id('b!DlaHWskCed_MIid3KpJH5Lbatf9HsdXBAZH5YcvPAbMhJUKzTJyzgvXZYpBS');

$node = WPCP_ONEDRIVE_API::get_entry('01EXLSWHWMQZNDMLRG7NFIWAVYCFJAXP2R');

$node->get_name();

Last updated