lib/DataSift/Historic.php
public static function listHistorics($user, $page = 1, $per_page = 20)
    {
        try {
            $res = $user->post(
                'historics/get',
                array(
                    'page' => $page,
                    'max' => $page,
                )
            );

            $retval = array('count' => $res['count'], 'historics' => array());

            foreach ($res['data'] as $historic) {
                $retval['historics'][] = new self($user, $historic);
            }

            return $retval;
        } catch (DataSift_Exception_APIError $e) {
            switch ($e->getCode()) {
                case 400:
                    // Missing or invalid parameters
                    throw new DataSift_Exception_InvalidData($e->getMessage());

                default:
                    throw new DataSift_Exception_APIError(
                        'Unexpected APIError code: ' . $e->getCode() . ' [' . $e->getMessage() . ']'
                    );
            }
        }
    }
public static function listHistorics($user, $page = 1, $per_page = 20)
    {
        try {
            $res = $user->post(
                'historics/get',
                array(
                    'page' => $page,
                    'max' => $page,
                )
            );

            $retval = array('count' => $res['count'], 'historics' => array());

            foreach ($res['data'] as $historic) {
                $retval['historics'][] = new self($user, $historic);
            }

            return $retval;
        } catch (DataSift_Exception_APIError $e) {
            switch ($e->getCode()) {
                case 400:
                    // Missing or invalid parameters
                    throw new DataSift_Exception_InvalidData($e->getMessage());

                default:
                    throw new DataSift_Exception_APIError(
                        'Unexpected APIError code: ' . $e->getCode() . ' [' . $e->getMessage() . ']'
                    );
            }
        }
    }
public static function listHistorics ( $ user , $ page = 1 , $ per_page = 20 ) { try { $ res = $ user -> post ( 'historics/get' , array ( 'page' => $ page , 'max' => $ page , ) ) ; $ retval = array ( 'count' => $ res [ 'count' ] , 'historics' => array ( ) ) ; foreach ( $ res [ 'data' ] as $ historic ) { $ retval [ 'historics' ] [ ] = new self ( $ user , $ historic ) ; } return $ retval ; } catch ( DataSift_Exception_APIError $ e ) { switch ( $ e -> getCode ( ) ) { case 400 : // Missing or invalid parameters throw new DataSift_Exception_InvalidData ( $ e -> getMessage ( ) ) ; default : throw new DataSift_Exception_APIError ( 'Unexpected APIError code: ' . $ e -> getCode ( ) . ' [' . $ e -> getMessage ( ) . ']' ) ; } } }
List Historics queries.

@param DataSift_User $user     The user object.
@param int           $page     The start page.
@param int           $per_page The start page.

@throws DataSift_Exception_InvalidData
@throws DataSift_Exception_APIError
List Historics queries .