I am deleting image using appcelerator API
https://api.cloud.appcelerator.com/v1/photos/delete.json?key=<YOUR APP KEY>&pretty_json=true
After using this API image object gets deleted but if I hit URL of this image object then it still shows image. This is odd as my image is still present in database which I don't want.
I have waited for one day to check if it gets deleted after some time but without success.
Image was deleted by user who created this image.
Please help
Thank you in advance
Are you providing your APP KEY when deleting? "message":"401 Unauthorized request. Please provide a valid App key or Oauth key." The app key is required. Reference http://docs.appcelerator.com/arrowdb/latest/#!/api/Photos-method-delete.
Related
I'm trying to use people.searchDirectoryPeople API to get photos from people in my organization. According to the documentation, I should have the https://www.googleapis.com/auth/directory.readonly access token, which I have provided. But results are missing the photos array ( according to the documentation there should be a photos array for each one of the results). I've set the mask to photos. If I set it to emailAddresses,photos It will return the emailAddresses array but not the photos. I can't find what I'm missing here, is there any specific scope that I should add or some other parameter.
P.S: I've added the https://www.googleapis.com/auth/userinfo.profile scope too, but no luck. Any idea where I should continue looking/investigating?
Thanks!
I've managed to find the root of the problem.
When I added a new user to my account, I added their images from the Google Amin page, but that seems to be the issue. Those photos are not shown when using the People API. When I logged in to the newly created account and changed the profile photo from there, it started showing in the results from API. Maybe it's but if you go back to Google Admin and change it again, it will stop showing again.
Looks like it's a bug in the Google Admin page or it is intended behavior but not mentioned in the documentation.
I've reported an issue: https://issuetracker.google.com/issues/228791251
Ive created a simple slack command that calls a rest api. The api simply returns some json with an image url.
This all works great in slack, but Ive noticed each time you view the image in slack it re-calls the image url.
This image is a live screenshot of one of our servers, if someone in slack views an old image (from a previous day) the screenshot is from now and not then.
Can this be stopped ? or am I better using webhooks ?
This is normal behavior for images URLs. Slack might cache it for some time, but it will ultimately always retrieve the newest version assuming it is the same image.
However, your image is changing over time. So while it has the same URL the content is changing.
To freeze the image at the time of the request you need to make time based snapshots and give them individual names / URLs. You can do this by creating a copy of that image each time the slash command is called and return a link to that copy. e.g. by uploading it to imgur.com or any other image server. You can also use Slack for this by the way (see this answer)
I'm getting the thumbnail of a document using file.get API, which is stored the field thumbnailLink in the drive response. But after some time, I get only a broken image.
Could you please let me know the exact expiration time of the thumbnail, which determines the expiration time and how to extend it? We can download the thumbnail image, store it in the cloud and then use it. But since the users are many and the documents are many and the thumbnail varies based on the changes, so I don't think this would be a better approach. I wanted to know whether we have any workaround to fix this issue? Do we have anything to play with the google cache? If so, how to do? will this be a permanent solution
As stated in the documentation
Important: Thumbnails are invalidated each time the content of the file changes. When supplying thumbnails, it is important to upload new thumbnails each time the content is modified. Metadata changes do not invalidate thumbnails.
The google drive thumbnail image link changes the file is changed.
You will need to refresh it if the link is bad by doing a file.get or upload new thumbnail image metadata whenever you change the file.
My app uses parse and I've already migrate to heroku + mlab. However, the data's not always there when I open the parse dashboard. I often get the following (when i click into no class will appear)
My app login a user and display a tableview of uiimages at launch. My app would often try loading but not being able to fetch anything from the server. Every time that happens I checked the dashboard and get the above. Any help would be greatly appreciated!
Update
i'll try to provide as much info as possible, please tell me if you hv any specific info you want me to share
I've Silverlight project
and on Windows azure storage, I upload an image here :
https://**.blob.core.windows.net/profilepicture/3d5978a1-3e51-4212-b129-9ff401149bc0
i see my picture, but when i update this picture, i see my old picture (I think it's because caching), when i check with "Azure storage explorer" my picture was change...
How i can Force the refresh on my silverlight application for to see my last update?
Thanks you very much
if you have same question, ask me.
You can force the cache expiration for the BLOB, read this doc:
http://msdn.microsoft.com/en-us/library/windowsazure/gg680306.aspx
Best way to force a refresh is to create a new filename when replacing a blob in Azure Storage.
You should write your app to be able to know the current name dynamically, so the app is always pulling the latest one.
There are cache-control headers that you can set on the blob, but you cannot gaurantee that every intermediate proxy will honor them, so changing the filename (the Guid in your URL above) is the only solution gauranteed to work.