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
776 stars 234 forks source link

Webhook Register Issue #244

Open GhostCrawl3r opened 5 years ago

GhostCrawl3r commented 5 years ago

Hi,

How to implement Twitter Account Activity API calls in Codebird PHP?

https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/api-reference/aaa-premium

We are trying to Register a Webhook.

image

For above call we got response as below:

{#784 ▼ +"errors": array:1 [▼ 0 => {#778 ▼ +"code": 200 +"message": "Forbidden." } ] +"httpstatus": 403 +"rate": null }

Also we tried to call using codebird function syntax below:

Changed call to $response = $this->api->accountActivity_all_ENV_NAME_webhooks($params); something like this but the response was "To call the templated method "account_activity/all/:env/_n_a_m_e/webhooks", specify the parameter value for "env"." This seems something wrong in the retrieving the original URL function.

For all other API calls codebird works fine.

Kindly specify something about using Twitter Account Activity API in your docs. It will be much appreciated.

Regards, Nick

GhostCrawl3r commented 5 years ago

Hi Mynetx,

Could you please update on this?

Regards, Nick

GhostCrawl3r commented 5 years ago

Hi Mynetx,

Could you please update on this?

Regards, Nick

GhostCrawl3r commented 5 years ago

Hi Mynetx,

Could you please update on this?

Regards, Nick

GhostCrawl3r commented 5 years ago

Hi Mynetx,

Could you please update on this?

Regards, Nick

GhostCrawl3r commented 5 years ago

Hi Mynetx,

Could you please update on this? Is this under development so we can check for some different solution?

Regards, Nick

mynetx commented 5 years ago

@iceblitz0077 I will have a solution for calling these methods over the weekend. Please stay tuned! :)

mynetx commented 5 years ago

@iceblitz0077 Please re-test with the revision f2265fc.

GhostCrawl3r commented 5 years ago

@iceblitz0077 Please re-test with the revision f2265fc.

Hey,

We have followed your instructions with the new revision & updated the package, we are still facing the same issues, can you help us?