Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] [API] aftermarket pierwsza funkcja
nowyyy31
post
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 20.08.2007
Skąd: Kartuzy

Ostrzeżenie: (0%)
-----


Próbuje się połączyć do http://api.aftermarket.pl/ za pomocą przykładowej funkcji którą podają:
http://api.aftermarket.pl/docs/AfterMarket...amples.pkg.html
  1. try
  2. {
  3. $AFT = new SoapClient("https://am-soap.com:4192/service.php?class=AfterMarket&wsdl",
  4. array("exceptions" => "true", "cache_wsdl" => WSDL_CACHE_MEMORY));
  5. $email = "someuser@email.com"; // oczywiście zmieniam dane na poprawne
  6. $password = "somepassword"; // wraz z hasłem
  7. $key = $AFT->login($email, $password, "pl");
  8. $balance = $AFT->getMyBalance($email, $key);
  9. echo "<p>Account balance is: " . $balance . "<p>\n";
  10. $AFT->logout($email, $key);
  11. }
  12. catch(Exception $e)
  13. {
  14. echo "<p>An error occured: " . $e->getMessage() . "</p>\n";
  15. }

Ale mam ciągle komunikat "An error occured: Could not connect to host". W czym może być problem?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 08:01