Project

General

Profile

Provisioning Management » History » Version 14

Eric Vieillevigne, 05/12/2015 04:27 PM

1 1 Eric Vieillevigne
{{>toc}}
2
3
h1. Provisioning Management
4 2 Eric Vieillevigne
5
Provisionning Management allows a thirdParty Application to create, update, delete an account of FamilyWall, Set the member profile right, set member premium type and select/update the services enable for such user. 
6
7
h2. Search User - _provsearch_
8
9
This method returns the accountId of a Valid user by Identifiers (email, login or MSISDN)
10
11 4 Eric Vieillevigne
By sending an HTTP request http://devserver/api/prov/search?identifier=test@gmail.com
12 2 Eric Vieillevigne
13
*Parameters*:
14
15
|*Name*|*Type*|*Description*|
16
|email|String|Email identifier|
17
|MSISDN|String|internationalized 10 digits number|
18
|login|String|login of a valid account|
19
20
*Response*:
21
<pre><code class="javascript">
22
{
23
  "a01":{
24
    "r":{
25
      "r":"12345"
26
    },
27
    "cn":"provsearch"
28
  }
29
}
30
</code></pre>
31
The Method response is a *Long* which represents the _AccountId_ of the account searched. 
32
33
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
34
35
*Error*:
36
37
|*Error Code*|*Type*|*Value*|*Description*|
38
|FizApiAccIdentifierInvalidException |Ex|21|User does not exist|
39 3 Eric Vieillevigne
40
41 5 Eric Vieillevigne
h2. Create Family - _provcreatefamily_
42 3 Eric Vieillevigne
43 4 Eric Vieillevigne
This method create a family with no member, set premium type, Set Enable Service (e.g. Calendar, Media management, Location...)
44 3 Eric Vieillevigne
45
By sending an HTTP request http://devserver/api/prov/createfamily
46
47
*Parameters*:
48
49
|*Name*|*Type*|*Description*|
50
|FamilyName|String|Name of the Family|
51
|Family Image|file|Binary file of Family image|
52 4 Eric Vieillevigne
|Premium_Type|Long|Free(0),Premium(1),Premium_Plus(2)|
53 3 Eric Vieillevigne
|Calendar_Service|Boolean|Default true|
54
|Location_Service|Boolean|Default true|
55 8 Eric Vieillevigne
|Autotracking_Service|Boolean|Default false|
56 3 Eric Vieillevigne
|Message_Service|Boolean|Default true|
57
|Photo_Service|Boolean|Default true|
58
|Video_Service|Boolean|Default true|
59
|Audio_Service|Boolean|Default true|
60
|Task_Service|Boolean|Default true|
61
|Calendar_Service|Boolean|Default true|
62
63
64
*Response*:
65
<pre><code class="javascript">
66
{
67
  "a01":{
68
    "r":{
69
      "r":"12345"
70
    },
71 4 Eric Vieillevigne
    "cn":"provcreatefamily"
72 3 Eric Vieillevigne
  }
73
}
74
</code></pre>
75 4 Eric Vieillevigne
The Method response is a *Long* which represents the _FamilyId_ of the familycreated. 
76 3 Eric Vieillevigne
77 1 Eric Vieillevigne
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
78 3 Eric Vieillevigne
79
*Error*:
80
81
|*Error Code*|*Type*|*Value*|*Description*|
82 6 Eric Vieillevigne
|AFizApiUnattendedException|Ex|21|Unknown exception|
83 7 Eric Vieillevigne
84
h2. Update Family - _provupdatefamily_
85
86
This method update a family with no member, set premium type, Set Enable Service (e.g. Calendar, Media management, Location...)
87
88
By sending an HTTP request http://devserver/api/prov/updatefamily?familyId=12345
89
90
*Parameters*:
91
92
|*Name*|*Type*|*Description*|
93
94
|FamilyName|String|Name of the Family|
95
|familyId|Long|Family Id |
96
|Family Image|file|Binary file of Family image|
97
|Premium_Type|Long|Free(0),Premium(1),Premium_Plus(2)|
98
|Calendar_Service|Boolean|Default true|
99
|Location_Service|Boolean|Default true|
100 8 Eric Vieillevigne
|Autotracking_Service|Boolean|Default false|
101 7 Eric Vieillevigne
|Message_Service|Boolean|Default true|
102
|Photo_Service|Boolean|Default true|
103
|Video_Service|Boolean|Default true|
104
|Audio_Service|Boolean|Default true|
105
|Task_Service|Boolean|Default true|
106
|Calendar_Service|Boolean|Default true|
107
108
109
*Response*:
110
<pre><code class="javascript">
111
{
112
  "a01":{
113
    "r":{
114
      "r":"12345"
115
    },
116
    "cn":"provupdatefamily"
117
  }
118
}
119
</code></pre>
120
The Method response is a *Long* which represents the _FamilyId_ of the familycreated. 
121
122
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
123
124
*Error*:
125
126
|*Error Code*|*Type*|*Value*|*Description*|
127
|AFizFamilyIdDoesNotExist|Ex|11|Family Id Does not Exists|
128 10 Eric Vieillevigne
129
130
131
132 1 Eric Vieillevigne
h2. Create Account - _provcreateaccount_
133
134 10 Eric Vieillevigne
This method create a member for a family and set the member type (member=(0),adminsitrator=(1),founder=(3)). Note that after this method, the user receive an invitation email or an SMS with link to complete the account creation.
135
136 13 Eric Vieillevigne
By sending an HTTP request http://devserver/api/prov/createaccount&type=Email&identifier=test@gmail.com&countryCode=FR
137
&accountType=3&partnerType=operatorId&sendaccountidentifiervalidationcode=true&locale=FR
138 10 Eric Vieillevigne
139
*Parameters*:
140
141
|*Name*|*Type*|*Description*|
142
|familyId|Long|Family Id where the member shall added|
143
|Type|String|Email,phone,login|
144
|Identifier|String|User Identifier Email or MSISDN depending on the type|
145
|UserName|String|User First Name|
146
|UserCountryCode|String|Country Code International Two letters|
147
|AccountType|Long|Account Type (member=(0),adminsitrator=(1),founder=(3))|
148
|Validationcode|Boolean|Email or Pin code Validation|
149
|Locale|String|Country Code International Two letters|
150
151
152
*Response*:
153
<pre><code class="javascript">
154
{
155
  "a01":{
156
    "r":{
157
      "r":"123455"
158
    },
159
    "cn":"provcreateaccount"
160
  }
161
}
162
</code></pre>
163
The Method response is a *Long* which represents the _AccountId_ of the accoutn created. 
164
165
In case, the method encounter any error, the response is an exception with specific parameters detailed below.
166
167
*Error*:
168
169
|*Error Code*|*Type*|*Value*|*Description*|
170 11 Eric Vieillevigne
|AFizFamilyIdDoesNotExist|Ex|11|Family Id Does not Exists|
171
|FizAccountAlreadyExistsException |Ex|2|Account Identifier already exists|
172 14 Eric Vieillevigne
|AFizInvalidIdentifierException|Ex|21|Identifier has an invalid format|
173
|AFizInvalidEmailException|Ex|17|Email has an invalid format|
174
|AFizInvalidMSISDNException|Ex|22|MSISDN has an invalid format|