Discussions

Ask a Question

Is everything im ising going to use 4 free?

All what im ising 2 make things work

Remove subscriber from a particular segment

Can I use this to remove a subscriber from the global segment? It doesn't appear to be working.. If not, you should really update your documentation because I've spent a couple of days building under the impression that I could add a one click opt-out to our site.

test

test

How to pick up Segments that I push via Javascript?

I am pushing a segment via Javascript but it is not picking up in my account. I currently do not have any segments. Do I need to create one in order for it to pick it up? I thought maybe this is the case, BUT it looks like I MUST create a filter. Why do I need to do that if I have decided that already via my javascript code? So when I try to use the filter and I select "javascript variable", this cannot work because I do not have that option in the API code. I am using this. _pcq.push(['addSubscriberToSegment', 'Accounting']); No variable, just the segment itself. So how does this work?

What do I do next?

Where do I go?

How to check is subscriber ID valid or Invalid?

Hi, I am getting response "Invalid Subscriber ID" , Before sending the notification i want to check is subscriber id valid or not , How can i do that?

first Pushcrew

Please comfirm Pushcrew

Send to an Individual Subscriber

I don´t know whats is wrong. Im trying to senda test to a subscribed user using php. could you help me <?php $title = 'Titulo de Test'; $message = 'Test'; $url = 'http://segsoftware.com.br'; $subscriberId = '919fd2eec1c0e0304655a355a62e3fc0'; $apiToken = 'df06e4a9c1507e4f73945928375131d9'; $curlUrl = 'https://pushcrew.com/api/v1/send/individual/'; //set POST variables $fields = array( 'title' => $title, 'message' => $message, 'url' => $url, 'subscriber_id' => $subscriberId ); $httpHeadersArray = Array(); $httpHeadersArray[] = 'Authorization: key='.$apiToken; //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $curlUrl); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($fields)); curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeadersArray); //execute post $result = curl_exec($ch); $resultArray = json_decode($result, true); if($resultArray['status'] == 'success') { //success //echo $resultArray['request_id']; //ID of Notification Request echo("sucess"); } else if($resultArray['status'] == 'failure') { //failure echo("erro1"); } else { //failure echo("erro2 " . $result); } //echo($subscriberId); ?>

alrady

nowrady

Javascript API - Modal Translation

How can I translate the Javascript API modal's messages? I know that using the parameter "text" I can edit the default message. But what about in these cases "If User is already subscribed" and "If User had blocked"? At this point I'm using something like this: window._pcq.push(['triggerOptIn',{subscriberSegment: 'homepage', modal: {text: 'Receba alertas sobre nossa promoção!', blackenBackground: true}}]); Cheers