9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/deploygate/api/v1/users/app.rb', line 9
def not_provisioned_udids(token, name, package_name, platform = 'ios')
res = Base.new(token).get("#{sprintf(ENDPOINT, name, platform, package_name)}/udids", {})
udids_results = {
:error => res['error'],
:message => res['because']
}
results = res['results']
unless results.nil?
results.reject!{|r| r['is_provisioned']}
udids_results[:results] =
results.map do |result|
{
:udid => result['udid'],
:user_name => result['user_name'],
:device_name => result['device_name'],
:is_provisioned => result['is_provisioned']
}
end
end
udids_results
end
|