Skip to content

Commit

Permalink
Impact Radius - SMG
Browse files Browse the repository at this point in the history
Update the URLs as member.impactradius.co.uk is gone now. New URL is - app.impact.com
  • Loading branch information
slaweknaczynski committed Oct 15, 2018
1 parent de132f2 commit 2aa31ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Oara/Network/Publisher/ImpactRadius.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function login($credentials)

$user = $this->_credentials['user'];
$password = $this->_credentials['password'];
$loginUrl = 'https://member.impactradius.co.uk/secure/login.user';
$loginUrl = 'https://app.impact.com/secure/login.user';

$valuesLogin = array(new \Oara\Curl\Parameter('j_username', $user),
new \Oara\Curl\Parameter('j_password', $password)
Expand All @@ -62,7 +62,7 @@ public function login($credentials)

// Open Technical Settings page
$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', array());
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', array());
$apiPageHTML = $this->_client->get($urls);

// Parse page content
Expand Down Expand Up @@ -341,7 +341,7 @@ public function getPaymentHistory()
$paymentHistory = array();

$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/nositemesh/accounting/getPayStubParamsCSV.csv', array());
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/nositemesh/accounting/getPayStubParamsCSV.csv', array());
$exportReport = $this->_client->get($urls);
$exportData = \str_getcsv($exportReport[0], "\n");

Expand Down
12 changes: 6 additions & 6 deletions Oara/Network/Publisher/Smg.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function login($credentials)

$user = $this->_credentials['user'];
$password = $this->_credentials['password'];
$loginUrl = 'https://member.impactradius.co.uk/secure/login.user';
$loginUrl = 'https://app.impact.com/secure/login.user';

$valuesLogin = array(new \Oara\Curl\Parameter('j_username', $user),
new \Oara\Curl\Parameter('j_password', $password)
Expand All @@ -61,7 +61,7 @@ public function login($credentials)


$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', array());
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', array());
$exportReport = $this->_client->get($urls);
$dom = new \Zend\Dom\Query($exportReport[0]);
$results = $dom->execute('div .uitkFields');
Expand All @@ -70,11 +70,11 @@ public function login($credentials)

$activeAPI = array(new \Oara\Curl\Parameter('_eventId', "activate"));
$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', $activeAPI);
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', $activeAPI);
$this->_client->post($urls);

$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', array());
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/mediapartner/accountSettings/mp-wsapi-flow.ihtml?', array());
$exportReport = $this->_client->get($urls);
$dom = new \Zend\Dom\Query($exportReport[0]);
$results = $dom->execute('div .uitkFields');
Expand Down Expand Up @@ -126,7 +126,7 @@ public function checkConnection()

//Checking connection for the impact Radius website
$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/mediapartner/home/pview.ihtml', array());
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/mediapartner/home/pview.ihtml', array());
$exportReport = $this->_client->get($urls);
$newCheck = false;
if (\preg_match('/\/logOut\.user/', $exportReport[0], $match)) {
Expand Down Expand Up @@ -266,7 +266,7 @@ public function getPaymentHistory()
$paymentHistory = array();

$urls = array();
$urls[] = new \Oara\Curl\Request('https://member.impactradius.co.uk/secure/nositemesh/accounting/getPayStubParamsCSV.csv', array());
$urls[] = new \Oara\Curl\Request('https://app.impact.com/secure/nositemesh/accounting/getPayStubParamsCSV.csv', array());
$exportReport = $this->_client->get($urls);
$exportData = \str_getcsv($exportReport[0], "\n");

Expand Down

0 comments on commit 2aa31ed

Please sign in to comment.