Around_io - Version 1.2.4

Version Notes

This is a stable version, go ahead and use it. I am always here (hi@around.io) to help.

Download this release

Release Info

Developer Aroundio
Extension Around_io
Version 1.2.4
Comparing to
See all releases


Code changes from version 1.2.3 to 1.2.4

app/code/local/AroundIo/Apiext/Model/ApiCall/Api.php CHANGED
@@ -1,14 +1,12 @@
1
  <?php
2
  class AroundIo_Apiext_Model_ApiCall_Api
3
  {
4
- public function productDetails()
5
  {
6
 
7
-
8
- $allproducts = Mage::getResourceModel('reports/product_collection')
9
- ->addAttributeToSelect('*');
10
  $productlist = array();
11
-
12
  $details = Mage::getModel('catalog/product');
13
  $prefix = Mage::getConfig()->getTablePrefix();
14
  //// $tags = Mage::getModel('tag/tag');
@@ -20,6 +18,7 @@ class AroundIo_Apiext_Model_ApiCall_Api
20
  $t=array();$m=array();
21
  foreach ($allproducts as $product)
22
  {
 
23
  $details->load($product['entity_id']);
24
  foreach ($tagrows as $tag) {
25
  if($tag['product_id']==$product['entity_id']) {
@@ -51,8 +50,8 @@ class AroundIo_Apiext_Model_ApiCall_Api
51
  $m = null;
52
  $mainimgurl = null;
53
  }
54
-
55
- return $productlist;
56
  }
57
 
58
  public function debugging()
1
  <?php
2
  class AroundIo_Apiext_Model_ApiCall_Api
3
  {
4
+ public function productDetails($input)
5
  {
6
 
7
+ $var = json_decode($input);
8
+ $allproducts = Mage::getResourceModel('reports/product_collection')->setPageSize($var->limit)->setCurPage($var->offset);
 
9
  $productlist = array();
 
10
  $details = Mage::getModel('catalog/product');
11
  $prefix = Mage::getConfig()->getTablePrefix();
12
  //// $tags = Mage::getModel('tag/tag');
18
  $t=array();$m=array();
19
  foreach ($allproducts as $product)
20
  {
21
+ $lastId = $product['entity_id'];
22
  $details->load($product['entity_id']);
23
  foreach ($tagrows as $tag) {
24
  if($tag['product_id']==$product['entity_id']) {
50
  $m = null;
51
  $mainimgurl = null;
52
  }
53
+
54
+ return array('lastId'=>$lastId, 'data'=>$productlist);
55
  }
56
 
57
  public function debugging()
app/code/local/AroundIo/Apiext/etc/wsdl.xml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
4
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
5
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
6
+ name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
7
+ <types>
8
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
9
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"
10
+ schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
11
+ </schema>
12
+ </types>
13
+ <message name="getTestRequest">
14
+ <part name="sessionId" type="xsd:string"/>
15
+ <part name="inputvar" type="xsd:string"/>
16
+ </message>
17
+ <message name="getTestResponse">
18
+ <part name="result" type="xsd:string"/>
19
+ </message>
20
+ <portType name="{{var wsdl.handler}}PortType">
21
+ <operation name="apiextApiCallproductDetails">
22
+ <documentation>Test the API.</documentation>
23
+ <input message="typens:getTestRequest"/>
24
+ <output message="typens:getTestResponse"/>
25
+ </operation>
26
+ </portType>
27
+ <binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
28
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
29
+ <operation name="customapiOrderTest">
30
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
31
+ <input>
32
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
33
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
34
+ </input>
35
+ <output>
36
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
37
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
38
+ </output>
39
+ </operation>
40
+ </binding>
41
+ <service name="{{var wsdl.name}}Service">
42
+ <port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
43
+ <soap:address location="{{var wsdl.url}}"/>
44
+ </port>
45
+ </service>
46
+ </definitions>
app/code/local/AroundIo/MageExt/controllers/AdminController.php CHANGED
@@ -353,6 +353,7 @@ private $apiKey = null;
353
  //die('dddd');
354
 
355
  $xmlPath = Mage::getBaseDir('app').DS. 'code' .DS. 'local' .DS. 'AroundIo' .DS. 'MageExt'.DS. 'etc' .DS. 'mageext_api.xml';
 
356
  //$xmlObj = new Varien_Simplexml_Config($xmlPath);
357
  $xmlObj = simplexml_load_file($xmlPath);
358
  //$xmlObj->api_role_id = 22;
@@ -451,7 +452,7 @@ private $apiKey = null;
451
  $string = '';
452
 
453
  for ($p = 0; $p < $length; $p++) {
454
- $string .= $characters[mt_rand(0, strlen($characters))];
455
  }
456
 
457
  return $string;
353
  //die('dddd');
354
 
355
  $xmlPath = Mage::getBaseDir('app').DS. 'code' .DS. 'local' .DS. 'AroundIo' .DS. 'MageExt'.DS. 'etc' .DS. 'mageext_api.xml';
356
+ var_dump($xmlPath);
357
  //$xmlObj = new Varien_Simplexml_Config($xmlPath);
358
  $xmlObj = simplexml_load_file($xmlPath);
359
  //$xmlObj->api_role_id = 22;
452
  $string = '';
453
 
454
  for ($p = 0; $p < $length; $p++) {
455
+ $string .= $characters[mt_rand(0, 25)];
456
  }
457
 
458
  return $string;
app/code/local/AroundIo/MageExt/etc/mageext_api.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <api>
3
- <api_key></api_key>
4
- <api_username></api_username>
5
- <api_role_id></api_role_id>
6
- <api_user_id></api_user_id>
7
  </api>
1
  <?xml version="1.0"?>
2
  <api>
3
+ <api_key>CMUBNHEEBO</api_key>
4
+ <api_username>around_api_user</api_username>
5
+ <api_role_id>5</api_role_id>
6
+ <api_user_id>3</api_user_id>
7
  </api>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Around_io</name>
4
- <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="https://Around.io">Aroundio Trial License</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>A social media marketing automation tool. Plan, schedule and automate your social media postings in no time. We fetch (with your permission) all your product details from your online shop and give you pre filled option to post on multiple platforms. You get to choose from all your images, and hashtags, you can decide which image to post on which platform at what time. Super easy to use and deliver constant traffic to your online shop.</description>
11
  <notes>This is a stable version, go ahead and use it. I am always here (hi@around.io) to help.</notes>
12
  <authors><author><name>Aroundio</name><user>Aroundio</user><email>hi@around.io</email></author></authors>
13
- <date>2015-07-06</date>
14
- <time>13:03:36</time>
15
- <contents><target name="magelocal"><dir name="AroundIo"><dir name="Apiext"><dir name="Helper"><file name="Data.php" hash="05895505117911f1d6942c7d12dbf602"/></dir><dir name="Model"><dir name="ApiCall"><file name="Api.php" hash="9fe042f0ebe9bb86f1afab6ceae50ead"/></dir></dir><dir name="etc"><file name="api.xml" hash="471d695d138203c1d87bd00d086f1804"/><file name="config.xml" hash="191ad2d2274db54f52a0cca4fb6921ae"/></dir></dir><dir name="MageExt"><dir name="Block"><file name="MageExt.php" hash="cb8aa476d78f84d8f5a525d54bbfefd3"/><file name="logo_aroundio.png" hash="50a68434aef6f33246dbd525b3fbba45"/><file name="mageext.phtml" hash="7ec1ddff1a7abc36c72d5f7a40de6f05"/></dir><dir name="Helper"><file name="Data.php" hash="341920b8de64dcaaef27b9ed1433369b"/></dir><dir name="controllers"><file name="AdminController.php" hash="e7c894405199381bf65001a306091277"/></dir><dir name="etc"><file name="config.xml" hash="0e9a1c84aea654853bf7c2cafeaccc0b"/><file name="mageext_api.xml" hash="30129d498e3f811fe5a1108568211dfe"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="AroundIo_Apiext.xml" hash="243e746273a436451a5eea9ffc10c6d1"/><file name="AroundIo_MageExt.xml" hash="56ebaac5be54eb080a6b25308383c3a3"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Around_io</name>
4
+ <version>1.2.4</version>
5
  <stability>stable</stability>
6
  <license uri="https://Around.io">Aroundio Trial License</license>
7
  <channel>community</channel>
10
  <description>A social media marketing automation tool. Plan, schedule and automate your social media postings in no time. We fetch (with your permission) all your product details from your online shop and give you pre filled option to post on multiple platforms. You get to choose from all your images, and hashtags, you can decide which image to post on which platform at what time. Super easy to use and deliver constant traffic to your online shop.</description>
11
  <notes>This is a stable version, go ahead and use it. I am always here (hi@around.io) to help.</notes>
12
  <authors><author><name>Aroundio</name><user>Aroundio</user><email>hi@around.io</email></author></authors>
13
+ <date>2015-07-15</date>
14
+ <time>11:25:22</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="AroundIo_Apiext.xml" hash="243e746273a436451a5eea9ffc10c6d1"/><file name="AroundIo_MageExt.xml" hash="56ebaac5be54eb080a6b25308383c3a3"/></dir></target><target name="magelocal"><dir name="AroundIo"><dir name="Apiext"><dir name="Helper"><file name="Data.php" hash="05895505117911f1d6942c7d12dbf602"/></dir><dir name="Model"><dir name="ApiCall"><file name="Api.php" hash="98d47e812411f2321369a7ad06328710"/></dir></dir><dir name="etc"><file name="api.xml" hash="471d695d138203c1d87bd00d086f1804"/><file name="config.xml" hash="191ad2d2274db54f52a0cca4fb6921ae"/><file name="wsdl.xml" hash="c10d170cadd956bf095bb5c7c2ca2f9c"/></dir></dir><dir name="MageExt"><dir name="Block"><file name="MageExt.php" hash="cb8aa476d78f84d8f5a525d54bbfefd3"/><file name="logo_aroundio.png" hash="50a68434aef6f33246dbd525b3fbba45"/><file name="mageext.phtml" hash="7ec1ddff1a7abc36c72d5f7a40de6f05"/></dir><dir name="Helper"><file name="Data.php" hash="341920b8de64dcaaef27b9ed1433369b"/></dir><dir name="controllers"><file name="AdminController.php" hash="66e781cfdbdc63e59540d9a6e0f55e9f"/></dir><dir name="etc"><file name="config.xml" hash="0e9a1c84aea654853bf7c2cafeaccc0b"/><file name="mageext_api.xml" hash="497df40caa33ed08faa5521bf2d7383e"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>