Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[Facebook]Promisify APIs #1518

Closed
2 of 8 tasks
ouadie-lahdioui opened this issue Nov 19, 2018 · 8 comments
Closed
2 of 8 tasks

[Facebook]Promisify APIs #1518

ouadie-lahdioui opened this issue Nov 19, 2018 · 8 comments

Comments

@ouadie-lahdioui
Copy link
Collaborator

ouadie-lahdioui commented Nov 19, 2018

Hello 👋

Some Facebook APIs need to be Promisified in order to to support Promises in addition to callbacks.

Her's the list of APIs that not yet promisified

  • attachment_upload_api
  • nlp
  • tags
  • handover
  • broadcast_api
  • insights_api

And her's those already promisified :

  • messenger_profile_api
  • user_profile

Good luck!

@HassenIO
Copy link
Contributor

HassenIO commented Nov 19, 2018

I take it, @ouadie-lahdioui, if you don't mind.

@HassenIO
Copy link
Contributor

@ouadie-lahdioui I've made the necessary changes. Should I also create the related specs? What's the agreement when it comes to testing?

@ouadie-lahdioui
Copy link
Collaborator Author

You need to make a new PR to the project.

@HassenIO
Copy link
Contributor

HassenIO commented Nov 19, 2018

Done 👍 #1520

All the following methods have been promisified:

  • attachment_upload_api
  • nlp
  • tags
  • handover
  • broadcast_api
  • insights_api

@HassenIO
Copy link
Contributor

Hi @ouadie-lahdioui,

I'm looking at the docs, and thinking about updating them with my recent changes. But I can't figure out where I should make these changes. Probably there is another repo?

Can you please point out where I can document the promise version of the edited methods?

Thanks

@ouadie-lahdioui
Copy link
Collaborator Author

Awesome!

Her's the new documentation repository.

@HassenIO
Copy link
Contributor

Thanks @ouadie-lahdioui. I just created an Issue there to ask guidance on how better document both ways: callback and promise.

howdyai/botkit-docs#22

@benbrown
Copy link
Contributor

Great work, gentlemen. I'll review asap.

benbrown added a commit that referenced this issue Dec 14, 2018
Closes #1518: Allow Promises when on Facebook API calls
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants