slov login

Forum for .PHP developers using the E-conomic API.
Exchange your ideas, tip and tricks using the API.
Best Practices

slov login

Postby boldt » Tue Aug 23, 2011 1:26 pm

Hi,

I have a working php integration with economic, sort of :-)

One thing that is very strange is that it takes approximately 1.5 minutes for me to authenticate, its the following piece that is slow

Code: Select all
        $postFields = "aftalenr=%s&brugernavn=%s&password=%s&popup=&geminfo=";
        $postUrl = "https://www.e-conomic.dk/secure/internal/login.asp";

        curl_setopt(
        $this->curlHandle,
        CURLOPT_POSTFIELDS,
        sprintf($postFields, $this->agreementNumber, $this->username, $this->password));
        curl_setopt(
        $this->curlHandle,
        CURLOPT_URL,
        $postUrl);
        // Post the login form
        $loginHtml = curl_exec($this->curlHandle);
        // Unset post fields
        curl_setopt($this->curlHandle, CURLOPT_POSTFIELDS, "");
        return true;


Is there any kind of throttling made into the api. Its a test account I'm working against.

Is there any thing that looks wrong in the above code

Best Regards
Niels
-
boldt
 
Posts: 4
Joined: Thu May 19, 2011 8:38 am

Re: slov login

Postby Christian Estrup » Tue Aug 23, 2011 3:12 pm

Hi,

The URL you're using is wrong - the e-conomic API is exposed at https://www.e-conomic.com/secure/api1/EconomicWebService.asmx.


Regards,
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 245
Joined: Tue Jun 09, 2009 6:37 pm


Return to PHP



cron