PHP code example of michaeldrennen / robinhood
1. Go to this page and download the library: Download michaeldrennen/robinhood library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
michaeldrennen / robinhood example snippets
$robinhoodUsername = '[email protected]';
$robinhoodPassword = '12345';
$robinhoodDeviceToken = 'someuuid'; // Open your web browser's inspector and examine the XHR POST request to /token. The value in the device_token param goes here.
$robinhood = new Robinhood();
$robinhood->login( $robinhoodUsername, $robinhoodPassword, $robinhoodDeviceToken );
$quotes = $robinhood->quotesForTickers( [ 'AAPL', 'MSFT' ] );