Function get_file_nodes

Source
pub async fn get_file_nodes(
    configuration: &Configuration,
    file_key: &str,
    ids: &str,
    version: Option<&str>,
    depth: Option<f64>,
    geometry: Option<&str>,
    plugin_data: Option<&str>,
) -> Result<InlineObject1, Error<GetFileNodesError>>
Expand description

Returns the nodes referenced to by ids as a JSON object. The nodes are retrieved from the Figma file referenced to by file_key. The node ID and file key can be parsed from any Figma node url: https://www.figma.com/file/{file_key}/{title}?node-id={id} The name, lastModified, thumbnailUrl, editorType, and version attributes are all metadata of the specified file. The linkAccess field describes the file link share permission level. There are 5 types of permissions a shared link can have: \"inherit\", \"view\", \"edit\", \"org_view\", and \"org_edit\". \"inherit\" is the default permission applied to files created in a team project, and will inherit the project’s permissions. \"org_view\" and \"org_edit\" restrict the link to org users. The document attribute contains a Node of type DOCUMENT. The components key contains a mapping from node IDs to component metadata. This is to help you determine which components each instance comes from. By default, no vector data is returned. To return vector data, pass the geometry=paths parameter to the endpoint. Each node can also inherit properties from applicable styles. The styles key contains a mapping from style IDs to style metadata. Important: the nodes map may contain values that are null. This may be due to the node id not existing within the specified file.