Hi guys,
I need help to configure webhook
i had try to use Ape.HTTPRequest in my project but i got error "/var/
ape/utils/utils.js:8:TypeError: ape_http_request is not a function"

What I had done :

1. create one file in /var/ape/examples/myproject.ape.js and add some
code like

Ape.registerCmd("webhook", false, function(params, infos) {
                var data = {params:params, infos:infos};
                var ape_http_request = new Ape.HTTPRequest;
                /* make a post request */
                
ape_http_request('http://local.ape-project.org/myproject/index2.php?
option=com_virtuemart&page=shop.listmultimeter&productids=89,74',
data);

        });
2. Added "      include("examples/myproject.ape.js");" in main.ape.js

3. ape server restarted

4. In Browser i had pest url for testing
http://ape.local.ape-project.org:6970/?[{%22cmd%22%3A%22webhook%22%2C%22channel%22%3A%22test%22%2C%22params%22%3A{%22key%22%3A%22val%22%2C%22a%22%3A%22a%22}}]
i got the error
[{"time":"1313744531","raw":"ERR","data":
{"code":"001","value":"BAD_PARAMS"}}]

5. in consol i got the error
/var/ape/utils/utils.js:8:TypeError: ape_http_request is not a
function

so what is the problem?
I'm unable to trace the error please guide me.

Thanks,
Smit

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to