Title: Connection to API?
Last modified: April 30, 2024

---

# Connection to API?

 *  Resolved [rhettfinck](https://wordpress.org/support/users/rhettfinck/)
 * (@rhettfinck)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/connection-to-api/)
 * Good afternoon Mustafa,
 * Does your Plugin have the potential to connect to a REST API. I would like to
   see if it’s possible to instead of sending an email, that it sends a Push Message
   via FCM or something like OneSignal

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * (@m_uysl)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/connection-to-api/#post-17723599)
 * Hi [@rhettfinck](https://wordpress.org/support/users/rhettfinck/),
 * We don’t have REST API support yet, it’s integrated to the `wp_mail`.
 * You may want to use `pre_wp_mail` hook to intercept email sending behavior and
   allow sending push messages. Or you can use `\MagicLogin\Utils\create_login_link()`
   for creating email login URLs to utilize for custom endpoints.
 * I hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Connection to API?’ is closed to new replies.

 * ![](https://ps.w.org/magic-login/assets/icon.svg?rev=2783285)
 * [Magic Login - Passwordless Authentication for WordPress - Login Without Password](https://wordpress.org/plugins/magic-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magic-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magic-login/)
 * [Active Topics](https://wordpress.org/support/plugin/magic-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magic-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magic-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mustafa Uysal](https://wordpress.org/support/users/m_uysl/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/connection-to-api/#post-17723599)
 * Status: resolved