Version Notes
get api key refactor
Download this release
Release Info
| Developer | Lexity |
| Extension | Incentivibe |
| Version | 1.3.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3.1 to 1.3.3
- app/code/local/Incentivibe/Model/Core.php +3 -15
- package.xml +5 -5
app/code/local/Incentivibe/Model/Core.php
CHANGED
|
@@ -14,22 +14,10 @@ class Incentivibe_Model_Core extends Mage_Core_Model_Config {
|
|
| 14 |
die($message);
|
| 15 |
}
|
| 16 |
|
| 17 |
-
public function has_lexity_user() {
|
| 18 |
-
$resource = Mage::getSingleton('core/resource');
|
| 19 |
-
$readConnection = $resource->getConnection('core_read');
|
| 20 |
-
$tableName = $resource->getTableName('api/user');
|
| 21 |
-
$results = $readConnection->fetchALL("SELECT * FROM api_user where username = 'lexity_incentivibe' LIMIT 1");
|
| 22 |
-
return isset($results[0]);
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
public function get_api_key() {
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
return $user->getApiKey();
|
| 30 |
-
} else {
|
| 31 |
-
return null;
|
| 32 |
-
}
|
| 33 |
}
|
| 34 |
|
| 35 |
public function check_credentials() {
|
| 14 |
die($message);
|
| 15 |
}
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
public function get_api_key() {
|
| 18 |
+
$user = Mage::getModel('api/user');
|
| 19 |
+
$user->loadByUsername('lexity_incentivibe');
|
| 20 |
+
return $user->getApiKey();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
public function check_credentials() {
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Incentivibe</name>
|
| 4 |
-
<version>1.3.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>BSD License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -34,11 +34,11 @@ Business owners like yourself are already seeing tremendous results. See what th
|
|
| 34 |
“The idea of paying a fraction of the amount for costly giveaway prizes by sharing the cost with others is just sheer brilliance. WizeNation generated a lot of traffic for the period of time the giveaway contest was taking place.”– Asim S., WizeNation
|
| 35 |

|
| 36 |
For any questions, concerns or issues, please don't hesitate to contact us at info@incentivibe.com or call us at 647-262-6877. We will reply ASAP.</description>
|
| 37 |
-
<notes>
|
| 38 |
<authors><author><name>Lexity</name><user>lexity</user><email>support@lexity.com</email></author></authors>
|
| 39 |
-
<date>2013-07-
|
| 40 |
-
<time>
|
| 41 |
-
<contents><target name="magelocal"><dir name="Incentivibe"><dir name="Block"><dir name="Credentials"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="f474348231fc5f2fbf55a088960c8dfe"/><dir name="Tab"><file name="Form.php" hash="fe505960ddd44b9d93be23f228b5c063"/></dir><file name="Tabs.php" hash="bdeb480aa420b2c39ed730f43aab7718"/></dir><file name="Edit.php" hash="f2f82146ba01e707bdd2ce402328de80"/></dir></dir><file name="Embed.php" hash="34659ee0bde3882e48df140fe757aa86"/></dir><dir name="Helper"><file name="Data.php" hash="8e1bd9769ef8aceedadfc4621eca7be8"/></dir><dir name="Model"><dir name="Core"><file name="Api.php" hash="a77a553ac4df826971b30d32146ba62f"/></dir><file name="Core.php" hash="
|
| 42 |
<compatible/>
|
| 43 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 44 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Incentivibe</name>
|
| 4 |
+
<version>1.3.3</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>BSD License</license>
|
| 7 |
<channel>community</channel>
|
| 34 |
“The idea of paying a fraction of the amount for costly giveaway prizes by sharing the cost with others is just sheer brilliance. WizeNation generated a lot of traffic for the period of time the giveaway contest was taking place.”– Asim S., WizeNation
|
| 35 |

|
| 36 |
For any questions, concerns or issues, please don't hesitate to contact us at info@incentivibe.com or call us at 647-262-6877. We will reply ASAP.</description>
|
| 37 |
+
<notes>get api key refactor</notes>
|
| 38 |
<authors><author><name>Lexity</name><user>lexity</user><email>support@lexity.com</email></author></authors>
|
| 39 |
+
<date>2013-07-03</date>
|
| 40 |
+
<time>23:43:47</time>
|
| 41 |
+
<contents><target name="magelocal"><dir name="Incentivibe"><dir name="Block"><dir name="Credentials"><dir name="Form"><dir name="Edit"><file name="Form.php" hash="f474348231fc5f2fbf55a088960c8dfe"/><dir name="Tab"><file name="Form.php" hash="fe505960ddd44b9d93be23f228b5c063"/></dir><file name="Tabs.php" hash="bdeb480aa420b2c39ed730f43aab7718"/></dir><file name="Edit.php" hash="f2f82146ba01e707bdd2ce402328de80"/></dir></dir><file name="Embed.php" hash="34659ee0bde3882e48df140fe757aa86"/></dir><dir name="Helper"><file name="Data.php" hash="8e1bd9769ef8aceedadfc4621eca7be8"/></dir><dir name="Model"><dir name="Core"><file name="Api.php" hash="a77a553ac4df826971b30d32146ba62f"/></dir><file name="Core.php" hash="6711c7ffa78ef463aafbfc4a6c875c8e"/><dir name="Order"><file name="Api.php" hash="96490635b3c01115c9fa97e66600909b"/></dir></dir><dir name="controllers"><file name="MarketingController.php" hash="54e36d03763ef131acf8b248215dc595"/></dir><dir name="etc"><file name="api.xml" hash="2643e43d8079d913b86ec90037452e4c"/><file name="config.xml" hash="453e544dbe9e851c8259c7e3e7613ccd"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Incentivibe.xml" hash="b1a9b462fde762efa4e3adfa97c887c3"/></dir></target></contents>
|
| 42 |
<compatible/>
|
| 43 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 44 |
</package>
|
