Title: error on PHP 8.2 (API v2 GET method)
Last modified: May 6, 2024

---

# error on PHP 8.2 (API v2 GET method)

 *  Resolved [xninedesign](https://wordpress.org/support/users/x9design/)
 * (@x9design)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-on-php-8-2-api-v2-get-method/)
 * I working on API v2 of your plugin and I noticed that if the server using PHP
   8.2 a php error occur while using GET method.
 *     ```wp-block-code
       <br /> <b>Deprecated</b>: Creation of dynamic property NewsletterApi::$key is deprecated in <b>/home/XXXXXXX/domains/xxxxxxxx.xxx/public_html/wp-content/plugins/newsletter-api/plugin.php</b> on line <b>132</b><br />
       ```
   
 * **Query URL:**
 * `https://xxxxxxxx.xxx/wp-json/newsletter/v2/subscribers/username@domain.com?client_key
   =XXXXXXXXXXX&client_secret=XXXXXXXXXXXXXX`
 * **Result: **
 * `{"id":8,"email":"username@domain.com","first_name":"","last_name":"","gender":
   null,"country":"","region":"","city":"","lists":[],"extra_fields":[],"status":"
   confirmed"}`
 * On PHP 8.1 no error.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-on-php-8-2-api-v2-get-method/#post-17735473)
 * Thank you for reporting, should be fixed on API addon 2.4.1.

Viewing 1 replies (of 1 total)

The topic ‘error on PHP 8.2 (API v2 GET method)’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/error-on-php-8-2-api-v2-get-method/#post-17735473)
 * Status: resolved