Picture of Nils 2377
Registered 9 years 242 days
Nils 2377 Tuesday, 6 July 2021, 05:36 PM
JS SearchApi photourl
Hello, in the docs for the searchApi there is an attribute photourl.

Example from the docs:
{
mt: "SearchInfo",
type: "contact",
guid: "8800aa00-a000-5f01-4800-009030010600",
dn: "Jake Blues",
link:"someapp?id=jbl@example.com",
contact: {
extension: ["673"],
givenname: "Jake",
sn: "Blues",
company: "Blues Brothers",
sip: ["jbl@example.com"],
email: ["john.blues@example.com"]
},
avatar: "jbl",
pbx: "master",
node: "root",
template: "Config",
photourl: "http://1.2.3.4/jbl/avatar.png",
adjust: true
}

When I call the searchApi I only get:

{
"mt":"SearchInfo",
"src":"usersapis",
"type":"contact",
"guid":"519c9076-1ee4-6001-8ebb-000c29c98d05",
"dn":"Sherlock Holmes",
"avatar":"s.holmes",
"link":"users?id=s.holmes@pbx.dvl",
"pbx":"pbx-dvl",
"node":"root",
"template":"Config User",
"contact":
{
"givenname":"Sherlock",
"sn":"Holmes",
"company":"",
"sip":["s.holmes@pbx.dvl"]
},
"consumer":"myapp"
}

Is this a bug in the api or wrong in the docs?

Also I would like to know if the photourl exists what does it contain?
The photo of a contact from the contact app or the avatar url from the user?

BR

Nils
Andreas Fink
Moderator Registered 13 years 52 days
Andreas Fink (innovaphone) Tuesday, 6 July 2021, 06:00 PM
Re: JS SearchApi photourl
Hello Nils,

the photurl is used in the myApps client for smatphones to get local photos from contacts.

We have also an Avatar API for user icons: https://sdk.innovaphone.com/13r2/web1/com.innovaphone.avatar/lib1_api_avatar.htm

Best Regards
Andreas
← You can define your color theme preference here