https://github.com/apivideo/helpful-scripts
Helpful scripts for massive uploads on api.video
https://github.com/apivideo/helpful-scripts
php video
Last synced: about 1 year ago
JSON representation
Helpful scripts for massive uploads on api.video
- Host: GitHub
- URL: https://github.com/apivideo/helpful-scripts
- Owner: apivideo
- License: apache-2.0
- Created: 2020-05-28T12:55:09.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T15:36:24.000Z (over 3 years ago)
- Last Synced: 2025-04-09T18:00:01.283Z (about 1 year ago)
- Topics: php, video
- Language: PHP
- Homepage: https://api.video
- Size: 50.8 KB
- Stars: 13
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://twitter.com/intent/follow?screen_name=api_video)
[](https://github.com/apivideo/helpful-scripts)
[](https://community.api.video)

[api.video](https://api.video) is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes.
# helpful-scripts
This repository contains useful scripts for PHP users who want to move videos into api.video more easily, or extract data details from your api.video account into a csv file. It includes:
* Google Drive to api.video - Move all your videos from a folder on your Google Drive into api.video
* FTP Server to api.video - Move all your videos from a folder on your FTP server into api.video
* Export Video Details to .csv File - Gather data about all your videos on api.video and export it in a .csv file.
# Google Drive to api.video
Quickly ingest video from Google Drive to api.video with this script.
## Prerequisites
* PHP 5.4 or greater with the command-line interface (CLI) and JSON extension installed
* The Composer dependency management tool
* A Google account with Google Drive enabled
* An api.video account
## Installation
```shell
composer require api-video/php-sdk
composer require google/apiclient:^2.0
```
## Walkthrough
If you want help setting up the Google Drive to api.video script, we have a complete walkthrough available:
[Helpful PHP Scripts Pt 1 - Upload Videos from Google Drive to API Video](https://api.video/blog/tutorials/helpful-php-scripts-upload-videos-from-google-drive-to-api-video)
## Quick Start
```shell
php Ingest_google_drive.php
```
# Ingest from ftp server to api.video
Easily ingest files from a selected ftp.server to your api.video account.
## Prerequisites
* PHP 5.4 or greater with the command-line interface (CLI)
* The Composer dependency management tool
* An Ftp server account
* An api.video account
## Installation
```shell
composer require api-video/php-sdk
```
## Walkthrough
If you want help setting up the Google Drive to api.video script, we have a complete walkthrough available:
[Helpful PHP Scripts Pt 2 - Upload Videos from an FTP Server](https://api.video/blog/tutorials/helpful-php-scripts-pt-2-upload-videos-from-an-ftp-server)
### Quick start
```shell
php import_from_ftp.php
```
# php-export-csv
Allow to easily export data details from tour api.video account into a csv file.
## Prerequisites
* PHP 5.4 or greater with the command-line interface (CLI)
* The Composer dependency management tool
* An api.video account
## Installation
```composer require api-video/php-sdk
```
## Walkthrough
If you want help setting up the Export Video Details to a .csv File script, we have a complete walkthrough available:
[Helpful PHP Scripts Pt 3 - Export All Your Video Details to a .csv File](https://api.video/blog/tutorials/helpful-php-scripts-pt-3-export-all-your-video-details-to-a-csv/)
## Quick Start
```shell
php create_csv.php
```