0.0.5 • Published 3 years ago
@challengy/api v0.0.5
Challengy API (Prototype)
Installation
Todo ...
Example of usage
import Challenge from "@challengy/challenges";
const api = new Challenge({idToken: "..."})
api.createChallenge({
title: 'test title',
description: 'test description',
tags: ['tag_1', 'tag_2'],
pathToMedia: '/path/to/the/media'
}).then((response) => {
// Response including the object you just created
}).catch((error) => {
// Error if any
});
Pushing functions to Firebase
To deploy the API functions to firebase, use:
firebase deploy --only functions