Title: API response incorrect
Last modified: March 1, 2021

---

# API response incorrect

 *  [stefyonweb](https://wordpress.org/support/users/stefyonweb/)
 * (@stefyonweb)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-response-incorrect/)
 * Hi, I’m experiencing this issue: when I update manually a license from backend,
   and then perform an slm_check within my plugin, the result is unexpected.
    This
   is my code:
 *  $api_params = array(
    ‘registered_domain’ => $_SERVER[‘SERVER_NAME’], ‘slm_action’
   => ‘slm_check’, ‘secret_key’ => MY_SECRET_KEY, ‘license_key’ => $options[‘activationKey’]);
 *  $query = esc_url_raw(add_query_arg($api_params, MY_SERVER_URL));
    var_dump($
   query); $response = wp_remote_get($query, array(‘timeout’ => 20, ‘sslverify’ 
   => false)); var_dump($response);
 * If I paste the url from the query in my browser, the result is ok, but the response
   is different, it’s the result before my manual changes.
    The odd thing is that
   if I change the order of the params in $api_params the response is ok, but only
   until next change. It seems like a sort of cache problem o something similar.
   Can you help please?
    -  This topic was modified 5 years, 2 months ago by [stefyonweb](https://wordpress.org/support/users/stefyonweb/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-response-incorrect/#post-14136887)
 * Hi, please check the following documentation to learn more about how to set up
   our plugin.
 * [https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress](https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress)
 * Thank you
 *  Thread Starter [stefyonweb](https://wordpress.org/support/users/stefyonweb/)
 * (@stefyonweb)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-response-incorrect/#post-14137686)
 * Hi, I’ve been using your plugin for at least 3 years and it worked fine until
   some days ago. I read the documentation many times.
    In the end I solved the 
   problem by sorting randomly the array $api_params, but this is just a workaround.
   If you can’t help me I’ll leave the code this way. Cheers
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-response-incorrect/#post-14138921)
 * I have submitted a message to the developers to investigate further your issue.
 * Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API response incorrect’ is closed to new replies.

 * ![](https://ps.w.org/software-license-manager/assets/icon-128x128.png?rev=1135848)
 * [Software License Manager](https://wordpress.org/plugins/software-license-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/software-license-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/software-license-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/software-license-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/software-license-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/software-license-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/api-response-incorrect/#post-14138921)
 * Status: not resolved