GithubHelp home page GithubHelp logo

isabella232 / mobile-app-dynamic-image-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poap-xyz/mobile-app-dynamic-image-api

0.0 0.0 0.0 63 KB

Endpoint the mobile app can use to show different images dynamically

JavaScript 100.00%

mobile-app-dynamic-image-api's Introduction

POAP Mobile app dynamic image API

Endpoint the mobile app can use to show different images dynamically.

Calling the endpoint

The API has one endpoint that can only be approached via GET request: https://storage.googleapis.com/mobile-app-dynamic-image.appspot.com/api/poap_images.json.

The output conforms to the following:

{
	"meta": {
		"updated": Number, // Javascript timestamp
		"updated_human": String // Human readable version of above timestamp
	},

	// The images will be a key/array combination of app locations and an array of available images
	String: Array

	// Examples:
	// header: [ 'https://poap.xyz/header1.svg', 'https://poap.xyz/header2.png' ],
	// footer: [ 'https://poap.xyz/footer1.png', 'https://poap.xyz/footer2.svg' ]

}

Editing the images

Images can be added and removed through the Firebase Console under storage > files > mobile_app_images.

Any folder under mobile_app_images will result in a key in the API response. For example to achieve the API response above, create the below file structure:

/
	/mobile_app_images/

		/header/
			header1.svg
			header2.jpg

		/footer/
			footer1.png
			footer2.svg

	/api/
		๐Ÿ›‘ No not touch this folder

When you upload new files, the API json file will be automatically updated, the only action you need to take is to upload new files. You may verify that everything works as you expect by opening the public API link in the browser.

mobile-app-dynamic-image-api's People

Contributors

actuallymentor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.