mento - Version 1.3.0

Version Notes

Update the authentication flow

Download this release

Release Info

Developer jimit
Extension mento
Version 1.3.0
Comparing to
See all releases


Code changes from version 1.2.0 to 1.3.0

Mento-Installation.pdf DELETED
Binary file
app/code/local/Mento/Social/Helper/Data.php CHANGED
@@ -70,7 +70,7 @@ class Mento_Social_Helper_Data extends Mage_Core_Helper_Abstract
70
  return false;
71
  } else {
72
  $ch = curl_init();
73
- $url = "https://staging.mento.io/oauth/ping?access_token=".$token;
74
 
75
  curl_setopt($ch, CURLOPT_URL, $url);
76
  curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER => TRUE));
70
  return false;
71
  } else {
72
  $ch = curl_init();
73
+ $url = "https://panel.mento.io/oauth/ping?access_token=".$token;
74
 
75
  curl_setopt($ch, CURLOPT_URL, $url);
76
  curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER => TRUE));
app/code/local/Mento/Social/controllers/Adminhtml/PromotionController.php CHANGED
@@ -72,7 +72,7 @@ class Mento_Social_Adminhtml_PromotionController extends Mage_Adminhtml_Controll
72
 
73
 
74
  $ch = curl_init();
75
- $url = "https://staging.mento.io/ecommerce/magento/apicreate";
76
  $req = array("full_name"=>$full_name,"email"=>$email,"api_user"=>$api_user,"api_key"=>$api_key, "stores"=>$stores);
77
  $str = http_build_query($req);
78
 
72
 
73
 
74
  $ch = curl_init();
75
+ $url = "https://panel.mento.io/ecommerce/magento/apicreate";
76
  $req = array("full_name"=>$full_name,"email"=>$email,"api_user"=>$api_user,"api_key"=>$api_key, "stores"=>$stores);
77
  $str = http_build_query($req);
78
 
app/design/adminhtml/default/default/template/mento/promotion.phtml DELETED
@@ -1,58 +0,0 @@
1
- <?php
2
-
3
- echo '<iframe frameborder="0" src="https://staging.mento.io/login?from=magento" width="100%" height="600" ></iframe>';
4
- exit;
5
- ?>
6
-
7
- <div class="content-header">
8
- <table cellspacing="0">
9
- <tr>
10
- <td style="width:50%;"><h3 class="icon-head head-newsletter-list">Mento</h3></td>
11
- <td class="form-buttons">
12
- <?php if(!Mage::helper('social')->validAPI() ) { ?>
13
- <button class="scalable add" onclick="window.location='<?php echo Mage::helper("adminhtml")->getUrl("admin_mento/adminhtml_promotion/apirole") ?>'"><span><span><span><?php echo Mage::helper('social')->__('Create API User & Role'); ?></span></span></span></button>
14
- <?php } ?>
15
-
16
- <?php // if(!Mage::helper('social')->validtoken() ) { ?>
17
- <button class="scalable add" onclick="window.location='<?php echo Mage::helper("adminhtml")->getUrl("admin_mento/adminhtml_promotion/apirole") ?>'"><span><span><span><?php echo Mage::helper('social')->__('Reconnect to Mento'); ?></span></span></span></button>
18
- <?php // } ?>
19
-
20
- </td>
21
- </tr>
22
- </table>
23
- </div>
24
- <div>
25
-
26
-
27
- <?php
28
-
29
-
30
- if(!Mage::helper('social')->validAPI()) {
31
- echo '<table width="100%" cellspacing="0" class="data">
32
- <tbody>
33
- <tr>
34
- <td align="center"><h2>Connect your store with Mento</h2> <br />
35
- <button class="scalable add" onclick="window.location=\''.Mage::helper("adminhtml")->getUrl("admin_mento/adminhtml_promotion/apirole").'\'"><span><span><span>'.Mage::helper('social')->__('Create API User & Role').'</span></span></span></button>
36
- </td>
37
- </tr>
38
- </tbody>
39
- </table>';
40
- } else if(!Mage::helper('social')->validtoken()) {
41
- echo '<table width="100%" cellspacing="0" class="data">
42
- <tbody>
43
- <tr>
44
- <td align="center"><h2>Your access token is expired</h2> <br />
45
- <button class="scalable add" onclick="window.location=\''.Mage::helper("adminhtml")->getUrl("admin_mento/adminhtml_promotion/apirole").'\'"><span><span><span>'.Mage::helper('social')->__('Reconnect to Mento').'</span></span></span></button>
46
- </td>
47
- </tr>
48
- </tbody>
49
- </table>';
50
- } else {
51
- echo '<iframe frameborder="0" src="https://staging.mento.io/ecommerce/magento/list?access_token='.Mage::helper('social')->gettoken().'" width="100%" height="600" ></iframe>';
52
- }
53
-
54
-
55
-
56
- ?>
57
-
58
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mento</name>
4
- <version>1.2.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Social Media Marketing Tool for Online Sellers</summary>
 
10
  <description>Social Media Marketing Tool for Online Sellers</description>
11
- <notes>Social Media Marketing Tool for Online Sellers</notes>
12
- <authors><author><name>Mento</name><user>Mento</user><email>hello@mento.io</email></author></authors>
13
- <date>2017-01-13</date>
14
- <time>13:36:51</time>
15
- <contents><target name="magelocal"><dir name="Mento"><dir name="Social"><dir name="Block"><dir name="Adminhtml"><file name="Promotion.php" hash="2b34691d4d7504caa0f7bf4ae15f26c8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0ee74ed013894983e59ab6d9dd27d003"/></dir><dir name="Model"><dir name="Product"><file name="Api.php" hash="6b26aff7f0bfe292d1795a9f7672512d"/></dir><dir name="Store"><file name="Api.php" hash="c1c6007f96bcd11d564f0586f0f3710f"/></dir><file name=".DS_Store" hash="36995b1ecc24f8969950f968014821fb"/><file name="._.DS_Store" hash="ec4a2c5ec6529cb5f55c76c0b28d7b9c"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PromotionController.php" hash="06cb8935bf51fdbe94094585c6467e99"/></dir></dir><dir name="etc"><file name="api.xml" hash="591ca13cf078c94e05e3ef86283f8253"/><file name="config.xml" hash="269a2e8d526764738e0550193394fb2b"/></dir><dir name="sql"><dir name="social_setup"><file name="mysql4-install-0.1.0.php" hash="7224511a61f87381c5e4f8bf43222a6c"/></dir><file name=".DS_Store" hash="a03a2e0e829bc9124384b148a1f893c0"/><file name="._.DS_Store" hash="8086728f82867c728eb0da0b2405a589"/></dir><file name=".DS_Store" hash="490f003acf0ffd30c66a7eeb0aeb5cb4"/><file name="._.DS_Store" hash="ed258f97796f3053420a59c3565ce097"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mento_Social.xml" hash="ea5cc72e1a96f9b06ae66d8c9ca22299"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mento"><file name="promotion.phtml" hash="ba2fa2d5c7b702ac8205a4a7e0fe6f79"/></dir></dir><dir name="layout"><file name="mento.xml" hash="c21b579339e1551f59b40040fd6ea633"/></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="Mento-Installation.pdf" hash="962c8e6eee91c8c77824d47207da4d3b"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mento</name>
4
+ <version>1.3.0</version>
5
  <stability>stable</stability>
6
+ <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Social Media Marketing Tool for Online Sellers&#xD;
10
+ </summary>
11
  <description>Social Media Marketing Tool for Online Sellers</description>
12
+ <notes>Update the authentication flow</notes>
13
+ <authors><author><name>jimit</name><user>jimit</user><email>jimit@mento.io</email></author></authors>
14
+ <date>2017-01-17</date>
15
+ <time>07:31:43</time>
16
+ <contents><target name="magelocal"><dir name="Mento"><dir name="Social"><dir name="Block"><dir name="Adminhtml"><file name="Promotion.php" hash="2b34691d4d7504caa0f7bf4ae15f26c8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="cb9ad87fd7e6451303f06556594e8ca9"/></dir><dir name="Model"><dir name="Product"><file name="Api.php" hash="6b26aff7f0bfe292d1795a9f7672512d"/></dir><dir name="Store"><file name="Api.php" hash="c1c6007f96bcd11d564f0586f0f3710f"/></dir><file name=".DS_Store" hash="36995b1ecc24f8969950f968014821fb"/><file name="._.DS_Store" hash="ec4a2c5ec6529cb5f55c76c0b28d7b9c"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PromotionController.php" hash="9aae900710c828778ee72200e5baf5c5"/></dir></dir><dir name="etc"><file name="api.xml" hash="591ca13cf078c94e05e3ef86283f8253"/><file name="config.xml" hash="269a2e8d526764738e0550193394fb2b"/></dir><dir name="sql"><dir name="social_setup"><file name="mysql4-install-0.1.0.php" hash="7224511a61f87381c5e4f8bf43222a6c"/></dir><file name=".DS_Store" hash="a03a2e0e829bc9124384b148a1f893c0"/><file name="._.DS_Store" hash="8086728f82867c728eb0da0b2405a589"/></dir><file name=".DS_Store" hash="490f003acf0ffd30c66a7eeb0aeb5cb4"/><file name="._.DS_Store" hash="ed258f97796f3053420a59c3565ce097"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mento.xml" hash="c21b579339e1551f59b40040fd6ea633"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mento_Social.xml" hash="ea5cc72e1a96f9b06ae66d8c9ca22299"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>7.0.0</max></php></required></dependencies>
19
  </package>