Instagram-PHP-API icon indicating copy to clipboard operation
Instagram-PHP-API copied to clipboard

Added support for subscriptions to the real-time API

Open philperusse opened this issue 12 years ago • 7 comments

I've added support for the real-time subscriptions API. I've also added two files to show how it works. Pretty straight forward.

philperusse avatar Mar 06 '14 21:03 philperusse

Great work !

I had to modify the _makeCall function to make the delete subscription methods works.

Line 508 of your file

$apiCall = self::API_URL . $function . $authMethod . (('GET' === $method || 'DELETE' === $method) ? $paramString : null);

It seems that the parameters have to be send through the query string when the DELETE method is used.

leup avatar Mar 19 '14 19:03 leup

+1! but the coding standards are somehow … different then the original version ;) indendation seems a little bit broken.

johannesnagl avatar Apr 17 '14 13:04 johannesnagl

Any reason why this was never merged or updated?

angelxmoreno avatar Aug 12 '16 01:08 angelxmoreno

This repo seems to be stale. I've made a fork and updated it with some new changes in Instagram's API: https://github.com/florianbeer/Instagram-PHP-API

florianbeer avatar Aug 12 '16 05:08 florianbeer

@florianbeer could you please provide a PR? 😄 I am sure @cosenary and others would appreciate it.

angelxmoreno avatar Aug 12 '16 07:08 angelxmoreno

It's been here since Mar 8 https://github.com/cosenary/Instagram-PHP-API/pull/204

florianbeer avatar Aug 12 '16 07:08 florianbeer

oh snap! I thought that fork was a recent thing you were referring to! Thanks @florianbeer

@cosenary can we get close this in favor of #204 ?

angelxmoreno avatar Aug 12 '16 08:08 angelxmoreno