With the REST API atom content feed I cannot find a plain list of attributes that it will return.
If I query photos, I know I can get title, and a link to the image. But if I want to see if I can get my.averageRating.
I assume my.averageRating can only be pulled from the content store via PHP API.
This doesnt work...
.../xn/atom/1.0/content(type=%27Photo%27)?order=my.averageRating@D&to=5
So thats cool - I will fork the code, and make some php.
But I still cannot find a definitive list of the attributes in the "my" data structure. Am I missing something?
It's only as safe as your external site, which should have file permissions set correctly (especially in a shared server environment), a good firewall, and trusted software.
Ideally if you hardcode the username and password in the file, you wouldn't leave it sitting in the filesystem when it's not in use. If the network doesn't have the 'remove promotional links' premium service applied to it, it is possible for someone else to access the file. Better alternatives if you wanted to have the file remain in the filesystem would be to either have it read the password from a file kept in the xn_private directory, or to have the file use a form to collect the credentials from you each time before running the api request.