get($api_endpoint); if ((int)$response->headers['code'] === 200) { $options = json_decode($response->response)->options; if ($currency === $options->currency && $language === $options->language) { return $options->hashid; } } return null; } }