jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
777 stars 235 forks source link

Can't find HTTP method to use for "favourites/create/:id". #181

Closed iDevelopThings closed 8 years ago

iDevelopThings commented 8 years ago

As stated, twitter has a method to create/destroy favourites.

It doesn't seem like this is actually added? Any possible way it could be added?

iDevelopThings commented 8 years ago

Nevermind... after looking through the code. I figured it was spelt "favorites" rather than "favourites"... what an annoying thing. xD

mynetx commented 8 years ago

Perhaps something like this?

cb.__call("favorites_create_ID", {"id": "..."}, ...);
iDevelopThings commented 8 years ago

I managed to get it working :) thank you though, if need be i can post the code for anyone else tomorrow :+1: