Re: Services_Twitter oembed endpoint
| From: | till | Date: | Sun, 08 Jan 2012 18:24:25 +0000 |
| Subject: | Re: Services_Twitter oembed endpoint | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54686@lists.php.net to get a copy of this message | ||
On Sun, Jan 8, 2012 at 4:43 PM, Joris Korbeeck <korbeeck@hotmail.com> wrote:
>
> Dear developers,
>
> I’m using the great Services_Twitter package and discovered the Twitter
> API statuses/oembed endpoint hasn’t been implemented yet.
>
> Therefor I added an entry to the package’s api.xml which incorporates its
> call:
>
> <endpoint name="oembed" method="GET"
> auth_required="false"
> routing="/statuses/oembed">
> <formats>xml,json</formats>
> <param name="id" type="string" required="true"/>
> <param name="maxwidth" type="integer"
> required="false"/>
> <param name="hide_media" type="boolean"
> required="false"/>
> <param name="hide_thread" type="boolean"
> required="false"/>
> <param name="omit_script" type="boolean"
> required="false"/>
> <param name="align" type="string"
> required="false"/>
> <param name="related" type="string"
> required="false"/>
> <param name="lang" type="string"
> required="false"/>
> </endpoint>
>
> I’ve tested it within a Joomla! plug-in I’ve written.
>
Sounds good! :)
>
> Could you advise me how to submit this code?
>
>
Check out trunk from SVN:
svn co http://svn.php.net/repository/pear/packages/Services_Twitter/trunk./Services_Twitter-trunk
Change the necessary files, maybe add test, run tests.
Create a patch: svn diff > oembed.patch
Open bug and let us know. We'll nudge maintainers or the QA team will apply
it and do a QA-release.
Cheers,
Till