src/Contracts/Driver.php
/**
     * Print ipfs bandwidth information.
     * @return object Guzzle Response.
     */
Print ipfs bandwidth information.
@return object Guzzle Response.
Print ipfs bandwidth information . @return object Guzzle Response .
public static function bw($peer=null)
    {
        $query = null;
        if($peer !== null) {
          $query = ['peer' => $peer];
        }
        $api = [
        'path'    => 'http://localhost:5001/api/v0/stats/bw',
        'method'  => 'POST',
        'query'   => $query,
        'file'    => null
        ];
        $cmd = null;
        $response = (new self())->handleCall($api, $cmd);
        return json_decode($response);
    }
public static function bw ( $ peer = null ) { $ query = null ; if ( $ peer !== null ) { $ query = [ 'peer' => $ peer ] ; } $ api = [ 'path' => 'http://localhost:5001/api/v0/stats/bw' , 'method' => 'POST' , 'query' => $ query , 'file' => null ] ; $ cmd = null ; $ response = ( new self ( ) ) -> handleCall ( $ api , $ cmd ) ; return json_decode ( $ response ) ; }
Print ipfs bandwidth information.
Print ipfs bandwidth information .