Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning Ionic, Second Edition

You're reading from   Learning Ionic, Second Edition Hybrid mobile apps with HTML5, CSS3, and Angular

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781786466051
Length 378 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Ravulavaru Ravulavaru
Author Profile Icon Ravulavaru
Ravulavaru
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Title Page
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Customer Feedback
Dedication
Dedication2
Preface
1. Angular - A Primer 2. Welcome to Ionic FREE CHAPTER 3. Ionic Components and Navigation 4. Ionic Decorators and Services 5. Ionic and SCSS 6. Ionic Native 7. Building the Riderr App 8. Ionic 2 Migration Guide 9. Testing an Ionic 2 App 10. Releasing the Ionic App 11. Ionic 3 12. Appendix

Uber APIs


In this section, we are going to go over the various APIs that we are going to consume in the Riderr app. We will also be generating a Client ID, a Client Secret, and a Server Token that we are going to use while making the requests.

Authentication

There are three authentication mechanisms for accessing the Uber API:

  • Server Token
  • Single sign-on (SSO)
  • OAuth 2.0

For us to make requests on behalf of a user, access the user's personal information, and book rides on the user's behalf, we need an OAuth 2.0 access token. Hence we will be following the OAuth 2.0 mechanism. If you are new to the OAuth 2.0 mechanism, take a look at http://www.bubblecode.net/en/2016/01/22/understanding-oauth2/ or https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2.

Registering with Uber

Before we proceed further, we need to have an Uber account to log in and register a new app with Uber. If you don't have an account, you can create one quite easily using the Uber app.

Once you have created...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images