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

Include Examples #2

Open
JohnMcLear opened this issue Aug 14, 2011 · 2 comments
Open

Include Examples #2

JohnMcLear opened this issue Aug 14, 2011 · 2 comments

Comments

@JohnMcLear
Copy link

This example gets the pad text and echos it out.

getText('test')); echo $padContents->data->text; ?>
@tomnomnom
Copy link

If the API always returns JSON, why not have the client class decode it and handle any potential errors instead of the user having to decode it every time?

@JohnMcLear
Copy link
Author

Updated Example:

    include 'etherpad-lite-client.php';
    $instance = new EtherpadLiteClient('YOURAPIKEYHERE');
    $padContents = $instance->getText('test');
    echo $padContents->text;

JohnMcLear referenced this issue in JohnMcLear/etherpad-lite-client Sep 12, 2012
some functions names we're wrong
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

2 participants