Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

'truly' crosss platform API (was: Send Data API Format) #40

Closed
hallard opened this issue Feb 17, 2015 · 2 comments
Closed

'truly' crosss platform API (was: Send Data API Format) #40

hallard opened this issue Feb 17, 2015 · 2 comments

Comments

@hallard
Copy link

hallard commented Feb 17, 2015

Hi there
Is someone is able to show a example of sending data to the hub with a more "generic" way; IE not using mono or any other layer.

For example posting data to the hub just using curl or a browser URL ?

Thanks for your help

@ivanignatiev
Copy link
Contributor

Hello @hallard

Send Event method of REST API is described there : https://msdn.microsoft.com/en-us/library/azure/dn790664.aspx . Regarding the documentation this command should work :

curl -H 'Authorization: SharedAccessSignature sr={Service Bus Namespace}.servicebus.windows.net&sig={Url Encoded Shared Access Key}&se={Time Stamp with Shared Access Key expration}&skn={Shared Access Policy name}' -H 'Content-Type:application/atom+xml;type=entry;charset=utf-8' --data '{Event Data}' https://{Service Bus Namespace}.servicebus.windows.net/{Event Hub Name}/messages

https://gist.github.com/ivanignatiev/d8fca4ff8b3f729f7337

Shared Access Signature Authentication with Service Bus - https://msdn.microsoft.com/en-us/library/azure/dn170477.aspx

@olivierbloch
Copy link
Contributor

Working on a JS sample running on node that uses the REST API. coming real soon

@lt72 lt72 added this to the v2.0 milestone Mar 11, 2015
@lt72 lt72 added the feature label Mar 11, 2015
@lt72 lt72 changed the title Send Data API Format 'truly' crosss platform API (was: Send Data API Format) Mar 17, 2015
@lt72 lt72 closed this as completed May 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants