Plantronics Developer Connection - Sandbox App Authorization https://developer.plantronics.com/blog/sandbox-app-authorization en Requesting and Receiving Application Authorization https://developer.plantronics.com/article/requesting-and-receiving-application-authorization <div class="field field-name-field-keywords field-type-taxonomy-term-reference field-label-above"> <div class="field-label">Keywords:&nbsp;</div> <div class="field-items"> <span class="field-item even label label-default keyword-label"><a href="/blog/sandbox-app-authorization" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Sandbox App Authorization</a></span> </div> </div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><h3>Authorization for Sandbox Tenant Data </h3> <p>Accessing the sandbox data DOES NOT require manual authorization by the Plantronics Manager Pro administrator.  All requests are immediately authorized and all requested datasets enabled. Here’s how it works:</p> <ol> <li>The sandbox is pre configured with a PM Pro tenant which is enabled for all ODA datasets for this tenant and for a sample app already created. Tenant API Code for the sandbox tenant as well as which products (datasets) the sample app(appId edb69c37-17d0-46a5-8bf8-38bc5ee43897) requires are pre popualted as default values in the relevant paramters section in the Api Docs. The Tenant API Code for the Plantronics Manager Pro Tenant: Sandbox.plantronics.com is <span style="font-family: Courier, &quot;Courier New&quot;, monospace; font-size: 14px; letter-spacing: 0.15px; text-align: center; background-color: rgb(255, 255, 255);">954681e3-7b62-447a-8783-ef447133f8c6</span></li> </ol> <ol start="2"> <li>Authorization is granted immediately when calling REST APIs with this tenantApiCode,  and all requested datasets enabled.</li> <li>When developing and testing against this environment, please make use of the pre configured sample AppId and tenant to test against.</li> </ol>   <h3>Authorization for Customer Tenant Data </h3> <ol> <li>Request access using the AuthorizeAppAPI(For documentation, please refer to Partner App Management APIs on the <a href="oda/apis">APIs page</a>). This requires the Tenant API Code for the tenant as well as which products (datasets) your app requires.</li> <li>A notification will be created within Plantronics Manager Pro and the administrator will be alerted of a pending request the next time they access their tenant. The admin will be prompted to authorize the app and additionally must enable access to each dataset required by your application.</li> <li>Once the app has been authorized and the required dataset access enabled, the next call to the AuthorizeAppAPI will return a result of “Authorization Granted”. Authorization for this app will not need to happen again unless the app is updated and requires access to new datasets.  In this case, the authorization would remain intact but new datasets would need to be enabled by the administrator of Plantronics Manager Pro.</li> </ol> Once you have obtained an AppID following the app registration API call, you can request authorization for a Plantronics Manager Pro tenant using the Tenant API Code for that tenant. <strong>NOTE</strong>: The Tenant API Code must be obtained from the relevant customer by direct communication between the app developer and customer.<br /> <br /> Your app authorization should include the datasets that your app requires for its features. The dataset enums are documented on the <a href="oda/apis">APIs page</a>. They map to Plantronics Manager Pro entitlement subscriptions: <ul> <li>Usage Analysis</li> <li>Asset Analysis</li> <li>Conversation Analysis</li> <li>Acoustic Analysis</li> </ul> <p><strong>Steps:</strong></p> <ol> <li>Place authorization request using the related API call, including your required datasets.<br /> <div class="media media-element-container media-default"><div id="file-191" class="file file-image file-image-png"> <h2 class="element-invisible"><a href="/files/request1png-0">request1.png</a></h2> <div class="content"> <img class="media-element file-default img-responsive" data-delta="2" typeof="foaf:Image" src="https://developer.plantronics.com/sites/default/files/request1_0.png" width="365" height="294" alt="" /> </div> </div> </div><br /> <br /> <div class="media media-element-container media-default"><div id="file-192" class="file file-image file-image-png"> <h2 class="element-invisible"><a href="/files/request2png-0">request2.png</a></h2> <div class="content"> <img class="media-element file-default img-responsive" data-delta="3" typeof="foaf:Image" src="https://developer.plantronics.com/sites/default/files/request2_0.png" width="397" height="359" alt="" /> </div> </div> </div><br />  </li> <li>Receive app authorization from a respective tenant. This requires the IT Administrator for the tenant to review and approve your authorization request within Plantronics Manager Pro. A notification will be created within Plantronics Manager Pro and the administrator will be alerted of a pending request the next time they access their tenant. The admin will be prompted to authorize the app and additionally must enable access to each dataset required by your application.<br /> <br /> <div class="media media-element-container media-default"><div id="file-193" class="file file-image file-image-png"> <h2 class="element-invisible"><a href="/files/update1png">update1.png</a></h2> <div class="content"> <img class="media-element file-default img-responsive" data-delta="4" typeof="foaf:Image" src="https://developer.plantronics.com/sites/default/files/update1.png" width="309" height="294" alt="" /> </div> </div> </div><br /> <br /> <div class="media media-element-container media-default"><div id="file-194" class="file file-image file-image-png"> <h2 class="element-invisible"><a href="/files/update2png">update2.png</a></h2> <div class="content"> <img class="media-element file-default img-responsive" data-delta="5" typeof="foaf:Image" src="https://developer.plantronics.com/sites/default/files/update2.png" width="340" height="296" alt="" /> </div> </div> </div><br />  </li> <li>Once the app has been authorized and the required dataset access enabled, the next call to the AuthorizeAppAPI will return a result of “Authorization Granted”. Authorization for this app will not need to happen again unless the app is updated and requires access to new datasets.  In this case, the authorization would remain intact but new datasets would need to be enabled by the administrator of Plantronics Manager Pro. To update dataset authorization request for an existing app, call the authorization request with the new subscription type.<br /> <br /> <div class="media media-element-container media-default"><div id="file-183" class="file file-image file-image-png"> <h2 class="element-invisible"><a href="/files/dataaccesspng">data_access.png</a></h2> <div class="content"> <img alt="Data Access in Plantronics Manager Pro" title="Data Access in Plantronics Manager Pro" class="media-element file-default img-responsive" data-delta="6" typeof="foaf:Image" src="https://developer.plantronics.com/sites/default/files/data_access.png" width="859" height="174" /> </div> </div> </div></li> </ol> <br /> <br /> ---<br /> <strong>Next Steps</strong>: Code and test your app, then review <a href="go-market">Go to Market</a> workflow.</div></div></div> Fri, 07 Jul 2017 20:41:39 +0000 toddz 806 at https://developer.plantronics.com https://developer.plantronics.com/article/requesting-and-receiving-application-authorization#comments