Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Submit from a string #69

Closed
darkstar4386 opened this issue Apr 20, 2016 · 1 comment
Closed

Submit from a string #69

darkstar4386 opened this issue Apr 20, 2016 · 1 comment

Comments

@darkstar4386
Copy link

darkstar4386 commented Apr 20, 2016

I would like to use a string variable that contains pre-validated IA markup to post a new article. Something like:

$client = Client::create($app_id, $app_secret, $page_token, $page_id, false);

// Import the article
try {
    $client->importArticle($article, false);
} catch (Exception $e) {
    echo 'Could not import the article: '.$e->getMessage();
}

where $article is a string.

@darkstar4386
Copy link
Author

I solved the issue, and everything is working now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant