geduldig / TwitterAPI

Minimal python wrapper for Twitter's REST and Streaming APIs
936 stars 263 forks source link

SUBSCRIPTION ENDPOINT NOT WORKING #216

Closed anoopshrma closed 2 years ago

anoopshrma commented 2 years ago

Hi @geduldig

You have a Dictionary of Endpoints in which two keys have the same values that is endpoint = 'account_activity/all/:PARAM/subscriptions'

'account_activity/all/:PARAM/subscriptions': ('POST', 'api'), # ENVIRONMENT NAME 'account_activity/all/:PARAM/subscriptions': ('DELETE', 'api'), # ENVIRONMENT NAME This is same for POST as well as DELETE. Since Dictionary cannot have same key values so while running one of the key is removed. Providing an example for the same

a = {"a":1,"a":2} a {'a': 2}

Are you working on it already or this is your first time seeing this error.

I can raise a PR for the fix. Any reply would be highly appreciated

geduldig commented 2 years ago

Thank you for finding the bug. I uploaded the fix - version 2.7.13.

On Mon, Jun 6, 2022 at 8:58 AM Anoop Sharma @.***> wrote:

Hi @geduldig https://github.com/geduldig

You have a Dictionary of Endpoints in which two keys have the same values that is endpoint = 'account_activity/all/:PARAM/subscriptions'

'account_activity/all/:PARAM/subscriptions': ('POST', 'api'), # ENVIRONMENT NAME 'account_activity/all/:PARAM/subscriptions': ('DELETE', 'api'), # ENVIRONMENT NAME This is same for POST as well as DELETE. Since Dictionary cannot have same key values so while running one of the key is removed. Providing an example for the same

a = {"a":1,"a":2} a {'a': 2}

Are you working on it already or this is your first time seeing this error.

I can raise a PR for the fix. Any reply would be highly appreciated

— Reply to this email directly, view it on GitHub https://github.com/geduldig/TwitterAPI/issues/216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWUOP2ABKNWGQQ7XDGVK6TVNXYXXANCNFSM5X7JTACQ . You are receiving this because you were mentioned.Message ID: @.***>

anoopshrma commented 2 years ago

Hey @geduldig, I just checked the library and it is working fine now as expected. Thanks for quick response