Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sonyarianto/hubspot-files-importer
- Owner: sonyarianto
- License: mit
- Created: 2023-09-23T12:48:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-27T12:06:34.000Z (about 1 year ago)
- Last Synced: 2024-10-12T12:52:16.104Z (about 1 month ago)
- Topics: data, hubspot, php
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
MITMaintained by Sony Arianto Kurniawan <> and contributors.