Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 821 Bytes

migration-1.x-2.0.md

File metadata and controls

15 lines (13 loc) · 821 Bytes

Migration Guide 1.x to 2.0

Key differences:

  • Helpers were moved to separate repository: RingCentral JS Helpers.
  • Root JS name has changed from RCSDK to RingCentral.SDK
  • New naming convention: getSomething() methods are now simply something()
  • Auth class inside Platform
  • AjaxObserver functionality been moved to Client
  • New ApiResponse interface that wraps network Requests/Responses:
    • apiResponse.json() instead of ajax.json
    • apiResponse.multipart() instead of ajax.responses
    • apiResponse.request() and ajax.response() to access to DOM Request and DOM Response accordingly
    • apiResponse.request().headers and ajax.response().headers should be used to access headers
  • Subscription interface changes