Hey,
I'm trying to use the new REST API to get a user's properties from his user profile.
When i try to just write the url in my browser (http://<site name>/_api/SP.UserProfiles.PeopleManager/GetMyProperties) it works fine, when i try to do the same from a SharePoint hosted app, it fails with cross domain call.
I tried to use the RequestExecutor for the call, but when i try the follow url it fails:
var upUrl = appweburl + "/_api/SP.AppContextSite(@t)/SP.UserProfiles.PeopleManager/GetMyProperties?@t='" + hostweburl + "'";
The error i get is "not found".
Any idea what am i doing wrong?
Best regards, Johnny Tordgeman.
My Blog