Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Consuming Azure Services from Node.js and Smart...

Andri Yadi
February 13, 2012

Consuming Azure Services from Node.js and Smartphones

The slide that DyCode team delivered on Microsoft TechDays: Get Ready for Windows Azure Platform Today!, Feb 13, 2012. Arif and I talked about how to develop and deploy Node.js-based services on Azure, and consume the services from iOS, Android, and Windows Phone.

Andri Yadi

February 13, 2012
Tweet

More Decks by Andri Yadi

Other Decks in Programming

Transcript

  1. blob storage GET  http://azuretechdemo.blob.core.windows.net/?comp=list&include=metadata x-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00

     GMT x-­‐ms-­‐version:  2009-­‐09-­‐19 x-­‐ms-­‐blob-­‐type:  BlockBlob Authorization:  SharedKey  watiosdemo:[ComputedHash] list all blob containers
  2. compute hash AccountKey:  /9seXadQ9HwOpXUO1jKxFN8q… Request:  GET\n\n\n\n\n\n\n\n\n\n\n\nx-­‐ms-­‐blob-­‐type:BlockBlob\nx-­‐ms-­‐ date:Thu,  14  Apr  2011

     20:30:00  GMT\nx-­‐ms-­‐version:2009-­‐09-­‐19\n/ watiosdemo/\ncomp:list\ninclude:metadata Hash = HMACSHA256(UTF8Encode(Request), Base64Decode(AccountKey))
  3. blob storage GET  http://azuretechdemo.blob.core.windows.net/?comp=list&include=metadata x-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00

     GMT x-­‐ms-­‐version:  2009-­‐09-­‐19 x-­‐ms-­‐blob-­‐type:  BlockBlob Authorization:  SharedKey  watiosdemo:[ComputedHash] list all blob containers <?xml  version="1.0"  encoding="utf-­‐8"?> <EnumerationResults  AccountName="http://watiosdemo.blob.core.windows.net/">    <Prefix>c</Prefix>    <MaxResults>3</MaxResults>    <Containers>        <Container>            <Name>movieposter</Name>            <Url>http://watiosdemo.blob.core.windows.net/movieposter</Url>            <Properties>                <Last-­‐Modified>Sun,  14  Apr  2011  20:09:03  GMT</Last-­‐Modified>            </Properties>        </Container>    </Containers> ....
  4. blob storage PUT  http://azuretechdemo.blob.core.windows.net/demoimages/poster.jpg   x-­‐ms-­‐date:  Thu,  14  Apr  2011

     20:30:00  GMT x-­‐ms-­‐version:  2009-­‐09-­‐19 x-­‐ms-­‐blob-­‐type:  BlockBlob Authorization:  SharedKey  watiosdemo:[ComputedHash] {...binary  representation  of  image...} add new image
  5. blob storage GET  http://watiosdemo.table.core.windows.net/Tables x-­‐ms-­‐date:  Thu,  14  Apr  2011  20:30:00

     GMT x-­‐ms-­‐version:  2009-­‐09-­‐19 DataServiceVersion:  1.0;NetFx MaxDataServiceVersion:  2.0;NetFx Authorization:  SharedKey  watiosdemo:[ComputedHash] list all tables <feed  xml:base="http://iostest.tables.core.windows.net/"  xmlns:d="http:// schemas.microsoft.com/ado/2007/08/dataservices"  xmlns:m="http:// schemas.microsoft.com/ado/2007/08/dataservices/metadata"  xmlns="http:// www.w3.org/2005/Atom">    <title  type="text">Tables</title>    <id>http://watiosdemo.tables.core.windows.net/Tables</id>    <updated>2011-­‐04-­‐04T17:18:54.7062347Z</updated>    <link  rel="self"  title="Tables"  href="Tables"  />    <entry>        <id>http://watiosdemo.tables.core.windows.net/Tables(‘movie')</id>        <title  type="text"></title>        <updated>2009-­‐01-­‐04T17:18:54.7062347Z</updated>        <author>            <name  />        </author> ....
  6. windows azure toolkit for windows phone 7 encapsulates authentication (directly

    or through proxy) requests & responses abstraction for cloud storage & SQL Azure source code is available at: https://watwp.codeplex.com latest version 1.3.2, nov 29, 2011 supports both Apple push notification & MS push notification
  7. windows azure toolkit for iOS encapsulates authentication (directly or through

    proxy) requests & responses abstraction for cloud storage supports Apple push notification source code is available at: https://github.com/WindowsAzure-Toolkits/wa-toolkit-ios latest version 1.2.1, aug 31, 2011
  8. windows azure toolkit for android encapsulates authentication (directly or through

    proxy) requests & responses abstraction for cloud storage source code is available at: https://github.com/microsoft-dpe/wa-toolkit-android latest version 1.0