I'm developing a Windows Phone unofficial client for Imgur, the documentation talks about Comments endpoints/data models...but there isn't any method to retrieve comments about a specific image or album.
Anyone known how to retrive them...if is possible? Thanks
After a month I understand how to retrieve them: just putting "/comments" after album or image id. Stupid incomplete API documentation.
To clarify I want to add few things:
Indeed You need to put '/comments', so in the end Your url should look like:
https://api.imgur.com/3/gallery/cUkfS9L/comments/best.
The id ('cUkfS9L' here) may be the id of IMAGE, not only gallery.
But what's more important, and where I had a problem:
It looks like this doesn't work for newest images.
I tried it for a list of newest images (got by '(...)time/all(...)' sorting in query) and noticed that getting comments works for like 4th page of my images.
My solution was changing "time/all" to "top". Now I had much older images and getting comments worked well for them.
Related
There is a image upload functionality in my vuejs application.
The image upload works good and the uploaded recorded is also displayed.
But this recently added record get displayed at last in my list. On page refresh it appears at top.
I want to show the recently uploaded image at top as soon as after successful upload.
I have been trying really hard for this since 2 days and couldn't find the solution.
Please help. Vuejs version is 2
basically if I'm correct what you want is to push new images to the images array, for this just use unshift()
something like this
this.images.unshift('url_or_info_of_the_new_image')
Here, you do have an example of code showing you how you could achieve this.
https://codesandbox.io/s/gracious-tree-nig54?file=/src/App.vue
Essentially, the most interesting part is this.initialArray = [this.newValue, ...this.initialArray].
Also, depends on what you've tried until now but keep in mind the few caveats JavaScript does have with VueJS v2: https://v2.vuejs.org/v2/guide/reactivity.html#For-Arrays
I know there is this link to find visually similar images to an uploaded picture
https://www.google.com/searchbyimage?site=search&sa=X&image_url=YOUR_IMAGE_URL
but is there also a way to get an API for the first result of the visually similiar image?
I have sympathy what you need.
I try to use google cse but this is not supported similar images.
So, Next that I try, URL.
But this is able to on the browser.
I just need result of simliar images and then I wish that result is visually.
So,
you can use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
Can anyone tell me if it's possible to change the photo once it's been posted on Google+?
E.G. I posted some text and included an image below the post (in the add link, video, photo section).
So, can I now edit that very post and just change the photo? When I try to do that, G+ gives me the option to edit the link only, not the photo.
Has anyone experienced issues like that, and is there a fix?
That is not possible. You have to delete the post and make a new post.
I'm a RoR beginner and I can't seem to find a tutorial on the following thing:
I want to add a picture for each of the tv shows in my database and then want to display the image by calling #show.image in my view (show being a tv show).
First, what's the column content ? (I would assume a string, but I'm thinking there might be something more appropriate)
Second, is there a way that I won't need to add URL's manually to the DB ? Like if I could somehow specify that the image name is the same as the tv show's name ?
My questions might be a bit confusing so please let me know if you cant understand what I mean!
Cheers
You need to use a gem called paperclip, it is very good.
Here is a link to the railscast
The railscast is pretty old, so the paperclip is a plugin, which won't work with rails 3.2 + .
The below github link will be of better use
Also the gem is open source and you can see this on github
For the first part of your question, I'm assuming that you want to store the URL's of the images in the database, and not the images themselves. string is a fine column type to use for this.
On the second part - yes, you can generate the image filename from other data if you want to. Probably the best way to do this is in the model, maybe with something like this:
def image
"/images/#{self.name}.png"
end
Then in your view, you can just call #show.image in the template.
The application I'm making is similar to YouTube. It is a TableView that has a custom cell that displays a screenshot of the video, title, duration, and rating. I think I'm able to create this custom cell, my question is what to use to get the information from the website? Thanks for the help, I'm still inexperienced.
Update: Maybe I didn't word it properly, but I meant to get the video and information from a different web site that isn't YouTube for its videos, sorry for the confusion.
You use YouTube's API.