home forums become a member Français
 
site search
get started apps & solutions Orange Partner Connect APIs news & events

username

password



forgotten password? >


Personal APIs protects Orange users through a privacy management process that prevents third parties from accessing their personal data without their permission.

 how does it work?
 parameters

(back to Personal APIs)

how does it work?


prerequisites

 Your service has requested the Authentication API and received a valid token for the Orange user.
 Your service is not allowed to access the Orange user's data.

The diagram below illustrates the general process:
 


Each step is described below:

step 1
The Orange user requests your service

step 2
Your service calls the Personal APIs on behalf of the Orange user

step 3
As your service is not granted, it receives a privacy exception response:


<?xml version="1.0" encoding="UTF-8"?>
<error>
     <code>-3</code>
     <detail>PrivacyAccessDeniedException</detail>
<url> [privacy_redirection_url] </url>
</error>


where [privacy_redirection_url] is:

http://[privacy_path]?familly=[familly]&serviceId=[your_serviceid]&attributes=[list_of_attributes]

 

Please note: the URL value provided in the XML response stream will be XML-encoded.
(e.g. http://privacy.orange.fr/urm-gui/interaction.do?family=contact&amp;serviceId=YOURSERVIC1234567890&amp;attributes=,see )


step 4

To allow the Orange users to change their permissions (and hopefully to grant your service), you need to redirect them to the Orange privacy web page using the URL contained in the privacy response enriched with your return URL:

http://[privacy_path]?familly=[familly]&serviceId=[your_serviceid]&
attributes=[list_of_attributes]&urlRetour=[your_return_url]


step 5
During this interaction, the Orange user has the following options:
 Grant your service to access their data only for this request.
 Grant your service to access their data permanently.
 Reject your service from accessing their data.

The diagram below shows an example of this interaction:


step 6
The Orange privacy component stores the user's preferences and redirects them to the return URL you specified previously.
You service is thus notified that the Orange user has updated their permissions.

step 7
Your service calls Personal APIs again.

step 8
If the Orange user has granted your service the appropriate permission, you will receive the data you requested.

(back to top)

parameters

The parameters are provided for information purpose only as you just have to copy/paste the privacy_redirection_url: parameters will be set properly by Orange.


Name Description Mandatory
privacy_path

The hostname and path of the Orange privacy component
- production: privacy.orange.fr/urm-gui/interaction.do
- integration: int4.mdsp.rec.orange.fr/privacy/interaction.do

yes
your_serviceid The service id you received at the subscription process (e.g.:YOURSITE002242432462)
yes
family This parameter identifies the API for which privacy rules management is required (see table below)
yes
list_of_attributes This list determines which privacy rules need to be modified (see table below)
no
your_return_url The URL you want Orange to redirect the user to after the privacy interaction:
(e.g.:http://www.yoursite.com/orange/privacymanager)
yes


 

Family Related API List of attributes
agenda Personal Calendar add_event
contact Personal Contacts add
see
myco Personal Content add_content
favoris Personal Favourites add_bookmark
messages Personal Messages

nbEmailSMS

emailsLastNDetailed
photos Personal Photos add
see



(back to top)
(back to Personal APIs)