Notificare app la o actiune

89 views
Skip to first unread message

Bogdan Ungureanu

unread,
Jun 1, 2013, 1:24:13 PM6/1/13
to 2performant-...@googlegroups.com
Salut,

In pagina Settings al app-ului exista optiunea de notificare atunci cand se efectueaza o actiune.

Unde se seteaza url-ul pentru aceasta notificare? M-am uitat in sectiunea de integrare url dar nu am gasit nimic despre notificari.

Tudor Sandu

unread,
Jun 3, 2013, 5:15:47 AM6/3/13
to 2performant-...@googlegroups.com
Actions = lead-uri sau vanzari.

Ca sa te legi de aceste webhooks, arunca un ochi peste http://help.2performant.com/w/page/26920766/Hooks%20API%20Methods

_____________

Tudor Sandu
tm.s...@gmail.com
tudorsandu.ro


2013/6/1 Bogdan Ungureanu <wizardw...@gmail.com>
Salut,

In pagina Settings al app-ului exista optiunea de notificare atunci cand se efectueaza o actiune.

Unde se seteaza url-ul pentru aceasta notificare? M-am uitat in sectiunea de integrare url dar nu am gasit nimic despre notificari.

--
You received this message because you are subscribed to the Google Groups "2Performant Developers RO" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2performant-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bogdan Ungureanu

unread,
Jun 3, 2013, 7:23:21 AM6/3/13
to 2performant-...@googlegroups.com
Mersi pentru info. Am incercat ceva de genul
        $opts =  array('url'=>'http://url.com/?r=app/getNotification' , 'url_type'=>'iframe');
        $variabila = Yii::app()->tpapi->hook_create('actions',$opts, 'Token-ul meu');

dar primesc


TPException_Transport

Authorization Required


Token-ul e ok, l-am testat intr-o alta sectiune.


luni, 3 iunie 2013, 12:15:47 UTC+3, Tudor Sandu a scris:
Actions = lead-uri sau vanzari.

Ca sa te legi de aceste webhooks, arunca un ochi peste http://help.2performant.com/w/page/26920766/Hooks%20API%20Methods

_____________

Tudor Sandu
tm.s...@gmail.com
tudorsandu.ro


2013/6/1 Bogdan Ungureanu <wizardw...@gmail.com>
Salut,

In pagina Settings al app-ului exista optiunea de notificare atunci cand se efectueaza o actiune.

Unde se seteaza url-ul pentru aceasta notificare? M-am uitat in sectiunea de integrare url dar nu am gasit nimic despre notificari.

--
You received this message because you are subscribed to the Google Groups "2Performant Developers RO" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2performant-developers-ro+unsub...@googlegroups.com.

Tudor Sandu

unread,
Jun 3, 2013, 7:37:58 AM6/3/13
to 2performant-...@googlegroups.com
Ai reinstalat aplicatia (pe un alt token) dupa ce ai dat setarea de action hook pe enabled?

Tokenul initial nu contine si accesul la aceasta metoda.

_____________

Tudor Sandu
tm.s...@gmail.com
tudorsandu.ro
0721.49.44.55


To unsubscribe from this group and stop receiving emails from it, send an email to 2performant-develo...@googlegroups.com.

Bogdan Ungureanu

unread,
Jun 3, 2013, 8:02:41 AM6/3/13
to 2performant-...@googlegroups.com
Da, optiunea a fost activata de la bun inceput. Ce-i drept, app-ul este in pending, dar am putut sa folosesc api-ul cu el in pending, nu vad de ce nu ar merge si asa.
2013/6/1 Bogdan Ungureanu <wizardw...@gmail.com>

To unsubscribe from this group and stop receiving emails from it, send an email to 2performant-developers-ro+unsubsc...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tudor Sandu

unread,
Jun 3, 2013, 8:11:26 AM6/3/13
to 2performant-...@googlegroups.com
Nu cred ca are legatura faptul ca e in pending.

Incearca fara token (o sa il ia pe cel curent) si ai grija ca URL-ul sa fie accesibil public (de catre serverul care va apela hook-ul).

_____________

Tudor Sandu
tm.s...@gmail.com
tudorsandu.ro


2013/6/3 Bogdan Ungureanu <wizardw...@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to 2performant-develo...@googlegroups.com.

Bogdan Ungureanu

unread,
Jun 3, 2013, 10:08:00 AM6/3/13
to 2performant-...@googlegroups.com
Am incercat fara token si nimic, url-ul e accesibil. E posibil sa fie un bug in wrapper sau api? 

iulian f

unread,
May 14, 2015, 3:42:58 PM5/14/15
to 2performant-...@googlegroups.com
Buna ziua,

Dupa lupte nereusite cu API si hooks, am ajuns la concluzia ca trebuie sa intreb aici, pentru ca si mai sus este aceeasi problema.

Eu vreau sa primesc o notificare cand se inregistreaza un comision, si prin urmare am folosit hook_create($name, $opts, $oauth_token_key='current');
Dar imi intoarce o eroare Fatal error: Uncaught exception 'TPException_Transport' with message 'Unauthorized' in /home/v...

Codul pe care il folosesc este:

$APP_KEY='cod';
$APP_SECRET='cod2';


$consumer = new HTTP_OAuth_Consumer($APP_KEY, $APP_SECRET, $oauth_data['token'], $oauth_data['secret']);
$session = new Tperformant("oauth", $consumer, "http://api.2parale.ro");

$name = "actions";
$opts = array("url"=>"http://situmeu/fisierul_care_primeste raspuns_de_la_aplicatie.php");
$r = $session->hook_create($name, $opts, $oauth_token_key='current');//
print_r($r);

Ce ar putea merge prost?

Multumesc mult!
Reply all
Reply to author
Forward
0 new messages