<meta http-equiv="Content-Type" content="text/html charset=us-ascii">Where do I find the php library?<div><br></div><div>Thanks<br><div><div>On Jul 24, 2014, at 1:50 PM, Matthias Wessendorf [via aerogear-dev] <<a href="/user/SendEmail.jtp?type=node&node=8526&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite">
        <div dir="ltr">Hello Brad!<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 8:44 PM, bradrickcarter <span dir="ltr"><<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;node=8523&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">HA! Yes! Thanks!<div><br></div><div>Not sure why i did that. Been up late nights trying to make this work...</div>
</blockquote><div><br></div><div>the devil is always in the details. sorry for that.</div><div><br></div><div>Let us know if/how we can improve our getting started experience!</div><div> </div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
<div><br></div><div>BTW - can I send a push from a web app using ajax?</div></blockquote><div><br></div><div>well, if the pushAppID/masterSecret is stored somewhere in a web-browser, everyone can read that (view source).</div>
<div><br></div><div>I'd send it form a backend. We have libraries for</div><div>* PHP</div><div>* node.js</div><div>* Java</div><div>Since the endpoints are HTTP/REST, you can use any platform :)</div><div><br></div><div>
<br></div><div>Now, using a backend as a "proxy", your web-app can bing the backend, via ajax, like "hey send 'XYZ' push", and the backend than has the credentials and simply delegates the XYZ payload to the UPS. That way pushAppID/masterSecret are not exposed on the "web site"</div>
<div><br></div><div>-M</div><div><br></div><div><br></div><div> </div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
<div><br></div><div>Thanks!<br><div><div class=""><div>On Jul 24, 2014, at 1:40 PM, Matthias Wessendorf [via aerogear-dev] <<a href="http://user/SendEmail.jtp?type=node&node=8522&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:</div>
<br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" type="cite"><div class="">
        <div dir="ltr">You should have received a message :-)<div><br></div><div><br></div><div>here is my curl:</div><div><br></div><div>curl -3 -u "ffeaec0b-ebc9-48e7-bab7-1cee73d38221:34882347-03ed-4561-95b6-6eeedc0adbd6" -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"message": {"alert":"This is a test push from cURL","sound":"default","badge":7,"content-available" : true}}' <a href="https://push-1127studios.rhcloud.com/ag-push/rest/sender" rel="nofollow" link="external" target="_blank">https://push-1127studios.rhcloud.com/ag-push/rest/sender</a><br>
<div><br></div><div><br></div><div>I removed the {} from the applicationID and from the masterSecret as well.</div><div><br></div><div>I wonder, why did you enter these {} around the credentials ? </div><div><br></div><div>
<br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Thu, Jul 24, 2014 at 8:35 PM, bradrickcarter <span dir="ltr"><<a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;amp;node=8521&amp;amp;i=0">x-msg://5/user/SendEmail.jtp?type=node&amp;node=8521&amp;i=0</a>" target="_top" rel="nofollow" link="external">[hidden email]></span> wrote:<br>
</div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><div class="">Hi Matthias,<div><br></div><div>Yes, the "Send Push" dialog works on the server. </div>
<div><br></div><div>I had a typo in my url but I am now getting a 401 Unauthorized. curl request below;</div>
<div><br></div><div>curl -3 -u "{ffeaec0b-ebc9-48e7-bab7-1cee73d38221}:{34882347-03ed-4561-95b6-6eeedc0adbd6}" -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"message": {"alert":"This is a test push from cURL","sound":"default","badge":7,"content-available" : true}}' <a href="https://push-1127studios.rhcloud.com/ag-push/rest/sender" rel="nofollow" link="external" target="_blank">https://push-1127studios.rhcloud.com/ag-push/rest/sender</a></div>
<div><br></div><div><br></div><div>Thank you!</div><div><br></div></div><div><br><div><div class=""><div>On Jul 24, 2014, at 1:28 PM, Matthias Wessendorf [via aerogear-dev] <<a href="http://user/SendEmail.jtp?type=node&node=8520&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:</div>
<br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" type="cite">
        <div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jul 24, 2014 at 8:13 PM, bradrickcarter <span dir="ltr"><<a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=8519&amp;amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=0</a>"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=0">x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=0</a>" target="_top" rel="nofollow" link="external">[hidden email]></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">First I'd like to say I spent about 3 days trying to get the push plugin to<br>
work in my cordova project (pulled out all of my hair!). I finally got it<br>
working and I am able to push to iOS and Android. The issue is I can only<br>
push messages from the Aerogear Push server on OpenSift. I have tried all<br>
day to send a message using the rest end-points with cURL and Ajax. I have<br>
no more hair to pull out.<br>
<br>
I have used the following urls to send and none work;<br>
<br>
<a href="https://push-1127studios.rhcloud.com/ag-push/rest/sender" rel="nofollow" link="external" target="_blank">https://push-1127studios.rhcloud.com/ag-push/rest/sender</a><br>
returns - HTTP/1.1 400 Bad Request<br></blockquote><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">Can share the CURL that cause the 400 ? </div><div style="font-family:arial,sans-serif;font-size:13px">
I bet there is some tiny error on the actual CURL/JSON</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">PS: Does the "Send Push" dialog work? The Server has a little page to actually send messags</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">-M</div><div> </div></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
<div><div class="h5">
<div>
<br>
<a href="https://push-1127studios.rhcloud.com/rest/sender" rel="nofollow" link="external" target="_blank">https://push-1127studios.rhcloud.com/rest/sender</a><br>
returns - HTTP/1.1 404 Not Found<br>
<br>
I have double checked my applicationID and master secret but nothing is<br>
working.<br>
<br>
Help!<br>
please...<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517.html</a><br>
Sent from the aerogear-dev mailing list archive at <a href="http://nabble.com/" rel="nofollow" link="external" target="_blank">Nabble.com</a>.<br>
_______________________________________________<br>
aerogear-dev mailing list<br></div></div></div>
<a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=8519&amp;amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=1</a>"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=1">x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=1</a>" target="_top" rel="nofollow" link="external">[hidden email]<br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><div class=""><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" rel="nofollow" link="external" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" rel="nofollow" link="external" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" rel="nofollow" link="external" target="_blank">http://twitter.com/mwessendorf</a>
</div></div></div>
<br>_______________________________________________
<br>aerogear-dev mailing list
<br><a href="<a href="<a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;amp;node=8519&amp;amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=2</a>"><a href="x-msg://3/user/SendEmail.jtp?type=node&amp;amp;node=8519&amp;amp;i=2">x-msg://3/user/SendEmail.jtp?type=node&amp;node=8519&amp;i=2</a>" target="_top" rel="nofollow" link="external">[hidden email]
<br><div class=""><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
        
        
        
        <br>
        <br>
        <hr noshade="" size="1">
        <div style="color:rgb(68,68,68);font-style:normal;font-variant:normal;font-weight:normal;font-size:12px;line-height:normal;font-family:tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8519.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8519.html</a>
        </div>
        <div style="color:rgb(102,102,102);font-style:normal;font-variant:normal;font-weight:normal;font-size:11px;font-family:tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em;line-height:1.5em">
                
                To unsubscribe from push sender rest not working for me, <a rel="nofollow" link="external" target="_top">click here</a>.<br>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font-style:normal;font-variant:normal;font-weight:normal;font-size:9px;line-height:normal;font-family:serif" link="external" target="_blank">NAML</a>
        </div></div></blockquote></div><br></div><div class="">
        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8520.html" rel="nofollow" link="external" target="_blank">Re: [aerogear-dev] push sender rest not working for me</a><div>
<div><br>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/" rel="nofollow" link="external" target="_blank">aerogear-dev mailing list archive</a> at <a href="http://nabble.com/" rel="nofollow" link="external" target="_blank">Nabble.com</a>.<br>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br></div>
<a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;amp;node=8521&amp;amp;i=1">x-msg://5/user/SendEmail.jtp?type=node&amp;node=8521&amp;i=1</a>" target="_top" rel="nofollow" link="external">[hidden email]<br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><div class=""><br><br clear="all">
<div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" rel="nofollow" link="external" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" rel="nofollow" link="external" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" rel="nofollow" link="external" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>
<br>_______________________________________________
<br>aerogear-dev mailing list
<br><a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;amp;node=8521&amp;amp;i=2">x-msg://5/user/SendEmail.jtp?type=node&amp;node=8521&amp;i=2</a>" target="_top" rel="nofollow" link="external">[hidden email]
<br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
        
        
        
        <br>
        <br>
        <hr noshade="" size="1">
        <div style="color:rgb(68,68,68);font-style:normal;font-variant:normal;font-weight:normal;font-size:12px;line-height:normal;font-family:tahoma,geneva,helvetica,arial,sans-serif"><div class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8521.html" rel="nofollow" link="external" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8521.html</a>
        </div><div class="">
        <div style="color:rgb(102,102,102);font-style:normal;font-variant:normal;font-weight:normal;font-size:11px;font-family:tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em;line-height:1.5em">
                
                To unsubscribe from push sender rest not working for me, <a rel="nofollow" link="external" target="_top">click here</a>.<br>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font-style:normal;font-variant:normal;font-weight:normal;font-size:9px;line-height:normal;font-family:serif" link="external" target="_blank">NAML</a>
        </div></div></blockquote></div><br></div><div class=""><div class="h5">
        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8522.html" target="_blank" rel="nofollow" link="external">Re: [aerogear-dev] push sender rest not working for me</a><br>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/" target="_blank" rel="nofollow" link="external">aerogear-dev mailing list archive</a> at <a href="http://Nabble.com" target="_top" rel="nofollow" link="external">Nabble.com</a>.<br></div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="x-msg://7/user/SendEmail.jtp?type=node&amp;node=8523&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank" rel="nofollow" link="external">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank" rel="nofollow" link="external">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank" rel="nofollow" link="external">http://twitter.com/mwessendorf</a>
</div></div>
<br>_______________________________________________
<br>aerogear-dev mailing list
<br><a href="x-msg://7/user/SendEmail.jtp?type=node&amp;node=8523&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8523.html" target="_top" rel="nofollow" link="external">http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8523.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from push sender rest not working for me, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://aerogear-dev.1069024.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></blockquote></div><br></div>
        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/push-sender-rest-not-working-for-me-tp8517p8526.html">Re: [aerogear-dev] push sender rest not working for me</a><br/>
Sent from the <a href="http://aerogear-dev.1069024.n5.nabble.com/">aerogear-dev mailing list archive</a> at Nabble.com.<br/>