diff --git a/README.md b/README.md index cd35100..513f7ff 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -#OneNote API Ruby on Rails Sample README +# OneNote API Ruby on Rails Sample README Created by Microsoft Corporation, 2014. Provided As-is without warranty. Trademarks mentioned here are the property of their owners. - -###API functionality demonstrated in this sample + +### API functionality demonstrated in this sample This sample illustrates how to use the OneNote REST API for the following use cases: - + * [Log-in the user](http://msdn.microsoft.com/EN-US/library/office/dn575435.aspx) * [POST simple HTML to a new OneNote QuickNotes page](http://msdn.microsoft.com/EN-US/library/office/dn575428.aspx) * [POST multi-part message with image data included in the request](http://msdn.microsoft.com/EN-US/library/office/dn575432.aspx) @@ -12,30 +12,30 @@ This sample illustrates how to use the OneNote REST API for the following use ca * [POST page with HTML rendered as an image](http://msdn.microsoft.com/en-us/library/office/dn575432.aspx) * [POST page with a PDF file rendered and attached](http://msdn.microsoft.com/EN-US/library/office/dn655137.aspx) * [Extract the returned oneNoteClientURL and oneNoteWebURL links](http://msdn.microsoft.com/EN-US/library/office/dn575433.aspx) - -###Prerequisites +### Prerequisites -#####Tools and Libraries + +##### Tools and Libraries You will need to download, install, and configure for your Ruby on Rails development environment. If you are new to Ruby on Rails, please go to [http://rubyonrails.org/download](http://rubyonrails.org/download) to get started. Once you have your Ruby on Rails environment up and running, be sure to verify the prerequisites for these too (in Gemfile for yours app). - + * gem 'jquery-rails' * gem 'rest-client' * gem 'rest-client-multipart' - + You also need a normal URL with hostname (not just an IP address) to use for the Redirect URL. If you run this from your own desktop, you'll need to modify your Hosts file (in C:\Windows\System32\drivers\etc for Windows machines and /private/etc for Macs) and map your local server IP address to a new domain name, as in the following example. ![Modify your Hosts file and map your local server IP address to a new domain name](images/HostsFile.png) -#####Microsoft Account - +##### Microsoft Account + As the developer, you'll need to have a [Microsoft account](http://msdn.microsoft.com/EN-US/library/office/dn575426.aspx) and get a client ID so your app can authenticate with the Microsoft Live connect services. - -###Using the sample### + +### Using the sample After you've setup your development tools, and installed the prerequisites listed above,.... @@ -44,16 +44,16 @@ After you've setup your development tools, and installed the prerequisites liste 3. On the API Settings page, set Mobile or desktop setting to No. 4. Set the Redirect URI to the domain name of your web site, as in the following example. The root domain name must be unique, so if you use one domain for testing and another for production, you'll need to register separate client ids and secrets for each domain. ![Specify API settings in the Microsoft Application Registration Portal](images/OneNoteMSAScreen.png) - 5. On the App Setting page, copy the client ID and secret into the config/onenote.yml file. - 6. Build and run the Ruby on rails app. - 7. Open a browser and navigate to the app running by default on port 3000. - 8. Login using your Microsoft account, and allow the app to create pages in your OneNote notebooks. + 5. On the App Setting page, copy the client ID and secret into the config/onenote.yml file. + 6. Build and run the Ruby on rails app. + 7. Open a browser and navigate to the app running by default on port 3000. + 8. Login using your Microsoft account, and allow the app to create pages in your OneNote notebooks. ### Version info This is the initial public release for this code sample. - + ### Learning more * Visit the [dev.onenote.com](http://dev.onenote.com) Dev Center @@ -61,7 +61,7 @@ This is the initial public release for this code sample. * Follow us on [Twitter @onenotedev](http://www.twitter.com/onenotedev) * Read our [OneNote Developer blog](http://go.microsoft.com/fwlink/?LinkID=390183) * Explore the API using the [apigee.com interactive console](http://go.microsoft.com/fwlink/?LinkID=392871). -Also, see the [short overview/tutorial](http://go.microsoft.com/fwlink/?LinkID=390179). +Also, see the [short overview/tutorial](http://go.microsoft.com/fwlink/?LinkID=390179). * [API Reference](http://msdn.microsoft.com/en-us/library/office/dn575437.aspx) documentation * [Debugging / Troubleshooting](http://msdn.microsoft.com/EN-US/library/office/dn575430.aspx) * [Getting Started](http://go.microsoft.com/fwlink/?LinkID=331026) with the OneNote API