Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sonyarianto/hubspot-files-importer

HubSpot files importer.
https://github.com/sonyarianto/hubspot-files-importer

data hubspot php

Last synced: about 18 hours ago
JSON representation

HubSpot files importer.

Awesome Lists containing this project

README

        

# hubspot-files-importer
Doing folders and files import on HubSpot? Maybe our script can help your task.

## PHP
Setup (using Composer)

```bash
composer require "hubspot/hubspot-php"
```

Quickstart

```php
getAllFolders()); // get all folders
echo json_encode($hubspot->getAllFiles()); // get all files
echo json_encode($hubspot->getAllNodes()); // get all data in array of nodes (folders and files combined)
echo json_encode($hubspot->getTreeNodes()); // get all data in array of nodes respecting tree format (folders and files combined)
echo json_encode($hubspot->getBreadcrumbs($hubspot->getAllNodes(), 'NODE_ID_HERE')); // get breadcrumbs for particular node id

// import all folder structure and all files to local disk targeting particular local folder

$hubspot->createDiskStructureFromTree($hubspot->getTreeNodes(), __DIR__ . '/files');
```

## License
MIT

Maintained by Sony Arianto Kurniawan <> and contributors.