Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passing the parameter replies=true to the exports api #1

Open
AbdelMounhim opened this issue Feb 10, 2021 · 0 comments
Open

passing the parameter replies=true to the exports api #1

AbdelMounhim opened this issue Feb 10, 2021 · 0 comments

Comments

@AbdelMounhim
Copy link

Hi,

if we set the parameter "replies" to the value true, the parameter replies in the url generated by createExport contains replies=1 and then the ExportResponse doesn't contain the replies.

$data = array('url' => $url, 'replies' => true, 'twitterType' => null);
$res = $export->exports->createExport($data);

workaround (in Exports.php) : force replies parameter to true :

 function createExport($data = array())
    {
        $url = $this->endpoint . '/export';
        $params = array(
            'url' => $data['url'],
        );
        if ($data['twitterType'] !== null) {
            $params['twitterType'] = $data['twitterType'];
        }
        $url = $url . '?' . http_build_query($params);
	$url = $url . '&replies=true';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant