Coder Social home page Coder Social logo

magento-slack's People

Contributors

steverobbins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

magento-slack's Issues

invalid_arg_name

Hi,

I have encounter an error when posting through php script running externally.

Following is working when running from cli, as "php slack.php"

<?php
require_once 'app/Mage.php';

Mage::app();
$chat = Mage::getModel('slack/api_chat');
$chat->setChannel('baselinker');
$chat->setText('OK!')->postMessage();

However running same through "curl -X GET url_to_same_file_slack.php" give following error:

Debug:

    [body] => Array
        (
            [ok] =>
            [error] => invalid_arg_name
        )

Exception

Stack trace:
#0 /public_html/app/code/community/Steverobbins/Slack/Model/Api/Abstract.php(117): Mage::throwException('invalid_arg_nam...')
#1 /public_html/app/code/community/Steverobbins/Slack/Model/Api/Chat.php(37): Steverobbins_Slack_Model_Api_Abstract-&gt;__call('postMessage', Array)
#2 /public_html/app/code/community/Steverobbins/Slack/Model/Api/Chat.php(37): Steverobbins_Slack_Model_Api_Abstract-&gt;postMessage()
#3 /public_html/slack.php(7): Steverobbins_Slack_Model_Api_Chat-&gt;postMessage()
#4 {main}
  thrown in <b>/public_html/app/Mage.php</b> on line <b>595</b><br />

Usage for frontend live chat

Hi man, you have a great job here. Congrats!

One doubt. Can I use your API to make a frontend live chat for Magento 1.9? How would it work? Is there another git projects that I could see an example?
Thanks and have a nice week.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.