curl -XPOST 'https://pubsub.googleapis.com/v1/projects/test-hbase-spark/topics/events:publish?key={KEY}' -d'{
"messages": [{"event":"interaction_loaded","sessionId":"unknown","properties":{"defaultDesign":"1","referrer":"http://www.telegraph.co.uk/news/2016/09/19/cuddling-kittens-can-kill-you-warn-scientists/","interactionId":"57dff415e6e75e19532dfbe4","voicrType":"multi poll two","publisherId":"54c7a9b285e2f62843b07317","creatorId":"5671441e671d2abb43f62095"},"metadata":{"browser":"chrome","os":"linux","device":"unknown","browser_version":"51.0.2704.106","referrer":"http://www.telegraph.co.uk/news/2016/09/19/cuddling-kittens-can-kill-you-warn-scientists/","current_url":"http://renderer.qmerce.com/interaction/57dff415e6e75e19532dfbe4","screen_height":"1080","screen_width":"1920","language":"en-US","interaction_id":"57dff415e6e75e19532dfbe4","voicr_type":"multi poll two","publisher_id":"54c7a9b285e2f62843b07317","creatorId":"5671441e671d2abb43f62095"}}]}'
{ "error": { "code": 401, "message": "The request does not have valid authentication credentials.", "status": "UNAUTHENTICATED" }}
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/d0ed630b-02db-49e5-b728-cf75c3a077f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kir Titievsky | Product Manager | Google Cloud Pub/Sub
Hi Shushu,
curl -XPOST 'https://pubsub.googleapis.com/v1/projects/hd-engineering/topics/valet_crud_api_pub:publish?key={@hd-engineering-db0af71d7d0d.json}' also
curl -d @cashstar.data https://pubsub.googleapis.com/v1/projects/hd-engineering/topics/valet_crud_api_pub:publish?key=@hd-engineering-db0af71d7d0d.json Here i am passing the datai want to publish. Any feedback would be greatly appreciated. At this point i have exhausted all references and now need community help.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/f9167f2d-e0b5-4f39-9744-76955efdf2f8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/a7c9af10-4abc-4c92-9c4d-64402a889791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Balu, could you tell us a bit more about why pushing directly to the REST end point is important? Perhaps we could find another solutition.
On Wed, Oct 4, 2017 at 8:50 AM Balu Ganesh <balu.gan...@gmail.com> wrote:
Hi,Could you able to push the data directly using the REST url given in the publisher guide? How did you do the authentication? Please help.
On Tuesday, 20 September 2016 20:34:57 UTC+5:30, Shushu Inbar wrote:Hi all,I am new to GCP and pub/sub, so maybe I am missing something basic.I followed the getting started instructions, created topic and subscription, and I was able to use the API explorer to send messages to the new pubsub I created.Still, when using curl from command line, I get 401 error.The credentials I am trying to use are taken from here:This is the request I am sending:
curl -XPOST 'https://pubsub.googleapis.com/v1/projects/test-hbase-spark/topics/events:publish?key={KEY}' -d'{
"messages": [{"event":"interaction_loaded","sessionId":"unknown","properties":{"defaultDesign":"1","referrer":"http://www.telegraph.co.uk/news/2016/09/19/cuddling-kittens-can-kill-you-warn-scientists/","interactionId":"57dff415e6e75e19532dfbe4","voicrType":"multi poll two","publisherId":"54c7a9b285e2f62843b07317","creatorId":"5671441e671d2abb43f62095"},"metadata":{"browser":"chrome","os":"linux","device":"unknown","browser_version":"51.0.2704.106","referrer":"http://www.telegraph.co.uk/news/2016/09/19/cuddling-kittens-can-kill-you-warn-scientists/","current_url":"http://renderer.qmerce.com/interaction/57dff415e6e75e19532dfbe4","screen_height":"1080","screen_width":"1920","language":"en-US","interaction_id":"57dff415e6e75e19532dfbe4","voicr_type":"multi poll two","publisher_id":"54c7a9b285e2f62843b07317","creatorId":"5671441e671d2abb43f62095"}}]}'The response is:
{"error": {"code": 401,"message": "The request does not have valid authentication credentials.","status": "UNAUTHENTICATED"}}
Please advise,Shushu--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/a7c9af10-4abc-4c92-9c4d-64402a889791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Kir Titievsky | Product Manager | Google Cloud Pub/Sub
Balu, could you tell us a bit more about why pushing directly to the REST end point is important? Perhaps we could find another solutition.
On Wed, Oct 4, 2017 at 8:50 AM Balu Ganesh <balu.gan...@gmail.com> wrote:
Hi,Could you able to push the data directly using the REST url given in the publisher guide? How did you do the authentication? Please help.
On Tuesday, 20 September 2016 20:34:57 UTC+5:30, Shushu Inbar wrote:Hi all,I am new to GCP and pub/sub, so maybe I am missing something basic.I followed the getting started instructions, created topic and subscription, and I was able to use the API explorer to send messages to the new pubsub I created.Still, when using curl from command line, I get 401 error.The credentials I am trying to use are taken from here:This is the request I am sending:
curl -XPOST 'https://pubsub.googleapis.com/v1/projects/test-hbase-spark/topics/events:publish?key={KEY}' -d'{
"messages": [{"event":"interaction_loaded","sessionId":"unknown","properties":{"defaultDesign":"1","referrer":"http://www.telegraph.co.uk/news/2016/09/19/cuddling-kittens-can-kill-you-warn-scientists/","interactionId":"57dff415e6e75e19532dfbe4","voicrType":"multi poll two","publisherId":"54c7a9b285e2f62843b07317","creatorId":"5671441e671d2abb43f62095"},"metadata":{"browser":"chrome","os":"linux","device":"unknown","browser_version":"51.0.2704.106","referrer":"http://www.telegraph.co.uk/news/2016/09/19/cuddling-kittens-can-kill-you-warn-scientists/","current_url":"http://renderer.qmerce.com/interaction/57dff415e6e75e19532dfbe4","screen_height":"1080","screen_width":"1920","language":"en-US","interaction_id":"57dff415e6e75e19532dfbe4","voicr_type":"multi poll two","publisher_id":"54c7a9b285e2f62843b07317","creatorId":"5671441e671d2abb43f62095"}}]}'The response is:
{"error": {"code": 401,"message": "The request does not have valid authentication credentials.","status": "UNAUTHENTICATED"}}
Please advise,Shushu--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/a7c9af10-4abc-4c92-9c4d-64402a889791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsubscrib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/a7c9af10-4abc-4c92-9c4d-64402a889791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Kir Titievsky | Product Manager | Google Cloud Pub/Sub
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/af400051-2676-426b-891e-0d588de5f731%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/af400051-2676-426b-891e-0d588de5f731%40googlegroups.com.