Image generator like https://www.randomlists.com but with API - image-generation

I'm looking for a random image generator like the one in https://www.randomlists.com/things however I would like to use it in my web app so I need one with a API.
Any possible candidates?

Looking closer at the website code, the best things to do may be to use their API the way they did.
First, get data for the list by getting this JSON. There is a list of available images in the JSON at RandL.items.
https://www.randomlists.com/data/things.json
Then, pull images from the site as given in the list like this (substituting the images names in the items list.
https://www.randomlists.com/img/things/phone.jpg

Related

React Native Data Base

Ok... I am so confused. I am new to React Native and I have created a simple mobile app that shows a list of news (containing a specific image, title, and description). I have a lot of experience with programming most of which comes from game development. I have created many games and I am familiar to cloud storage systems that you update and retrieve data.
Right now I just have a local json file with an array of 'news' Objects and then I loop through this array to show the news posts. Basically, I want to move this json file to somewhere online where the app just retrieves it. This would make it so that the News json file could be edited in order to change, add or remove new news. So, I don't need account or anything. I don't even need to be able to set/update data from the app. I just need a place to store images and files that can be retrieved from the app.
I have tried using the common react native data base systems like sqlite, realm, mongodb, and firebase, but must not understand how they work because they make no sense. Also, it seems like when making a mobile app all of these services require you to setup a backend and start a server, which from what I can tell doesn't work on mobile... It seems logical that there would be a global data base that I could store storage on and just receive it by a simple fetch or network call. Am I totally crazy here ?:) Any help or guidance is super appreciated. Thanks.

2sxc - Getting URL path from DNN link parameter / Tab ID

I am working on integrating a 2sxc content WebAPI feed into a ReactJS application.
I have managed to get a JSON feed of data into the application, and am in the process of mapping out the data.
I'm wondering what the best practice would be to "resolve" a URL which is coming through as a DNN Page/ Tab ID.
Below I will showcase the various points this is referenced...
First the Setup of the entity / data types...
Then this is an example entry with the data filled out... The page link / URL is set up to point to another internal page on the DNN website:
Finally you can see this data item come through as a JSON feed via the 2sxc API:
What is the best way to convert this piece of data into a URL which can be used in a SPA type application?
There isn't any "server-side" code going on, just reading a JSON feed on the client side...
My initial idea would be to parse this piece of data in JS, to extract the number then use something like this:
http://www.dotnetnuke.com/tabid/85/default.aspx
http://www.dotnetnuke.com/default.aspx?tabid=85
I was hoping someone with more experience would be able to suggest a better / cleaner approach.
Thanks in advance
If you were server-side in Razor you'd be doing something like this:
#using DotNetNuke.Common
View List
XXXX = Dnn.Tab.TabID or define a string with the tab id you want
I seem to have a vague memory that I saw somewhere that Daniel (2sxc) has a way to use Globals.NavigateUrl() or similar on the client side, but I have no idea where or if I did see that.
The Default.aspx?tabid=xx format will certainly work, as it's the oldest DNN convention and is still used in fallbacks. The urls aren't nice, but it's ok.
The reason you're seeing this is because the query doesn't perform the automatic lookup with the AsDynamic(...) does for you. There is an endpoint to look them up, but they are not official, so they could change and therefor I don't want to suggest that you use them.
So if you really want a nicer url, you should either see if DNN has a REST API for this, or you could create a small own 2sxc-api endpoint (in the api folder) just to look that up, then using the NavigateURL. Would be cool if you shared your work.

Retrieving images from eBay's gallery using eBay API

So I'm very new to developing with eBay's API (or any API) and can't seem to work out how to reference the images from the gallery in the listing template. I don't want to use the URL specifically but rather use the eBay API to bring the images in from the eBay gallery so you don’t have to upload the images twice.
From What I understand, this can be done through an array using Item.PictureDetails.PictureURL. But I could be wrong.
Anyone done/know how to do this? Any help would be awesome!
I'm using PHP with XML.
So, if i understand your problem, you must call GetItem API (http://developer.ebay.com/devzone/xml/docs/reference/ebay/GetItem.html) to retrieve the data for a single item.
This call return an xml where you can find picture URL.

What is the best way how to obtain a list of images hosted on a Scene 7 server?

I am working on an (angular 1) application feature that has to display a list of images that are available for user to select (for whatever purpose).
It is all very trivial, except that the images are hosted on a Scene 7
server. I know there is concept of image sets. Presumably a set would be created there and all I would need to do is to obtain the list of images in that set and parse it into a javascript array.
However, after some looking through docs and searching the web, I am no wiser how to achieve that.
How would one go about achieving this end? Getting a list of available images from Scene 7 server and passing that to an angular appliation?
In an ideal case, that would be in JSON format and with frontend-only approach. However, if that is impossible, then other approaches would do too. Say, an angular call to own backend server that would connect to Scene 7 API, obtain that list in whatever shape or format, parse it and then pass it as JSON to angular app.
Has anyone had experience with this?
If supported, could develop an API that retrieves the image Urls from the Image Server.

generate static urls automatically in MEANjs project

I am working on a MEANjs project. Till now, the project consisted of dynamic urls, wherein the city and country name will get attached to the url and filters will attach as parameters, dynamically. But now, for SEO purpose, I need static urls with filters and city/country name.
Currently I have urls like this: www.abc.com/xyz/san-jose--ca--usa?params=123
I need to have static urls for the same as: www.abc.com/123-xyz-in-san-jose--ca--usa
So here are the problems I am facing:
1. I am not sure whether this has to done in backend(nodejs) or frontend(angularjs).
2. Whether I need to generate and store all such 1000s of url somewhere in my project.
3. if point 2 is true, do I need a list of all cities and countries to generate such urls? If so, how will I get those.
I tried to google, but I could only find something in php which is .htaccess and I am not even sure if its the same thing that I am searching.
Can somebody help me out or guide me to any documentation explaining the same?
Edit:
Since I need to use google maps geocode to get lat-lon for the city-state combo. For point 1, I am going the angularjs way. I can specify the routes similar to the way suggested by Molda in angularjs.
For point 2, I figured I will have to generate the static links for all city-state combinations and store it in some file. But I am not sure how to get all the city-state combination for USA.
As of now, I am going with census data. But again, not sure if google will geocode it correctly or not. If anybody can help me out in this, it will be awesome.

Resources