This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"success": true | false, | |
"status_code": 403 | 200, | |
"message": "Payment limit exceeded" | "Payment can be processed", | |
"payload": [ | |
{ | |
"limit_exceeds": true | false, | |
// 'message' is null when none of the limits are exceeded | |
"message": string | null, | |
"method_id": 34 | 35 | 36 | 37, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*🎉 The formula: | |
calc((100% / var(--columns)) - var(--gap) + (var(--gap) / var(--columns))); | |
*/ | |
.parent { | |
--gap: 20px; | |
--columns: 4; | |
display: flex; | |
gap: var(--gap); | |
flex-wrap: wrap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Erroneous Async Class Declaration ❌ | |
class ConfigurationLoader { | |
public config: any; | |
constructor() { | |
// TypeScript/Javascript Compile-time Error: Constructors cannot contain 'await' | |
this.config = await fetchConfiguration(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The function validates whether a given URL is a valid YouTube or Vimeo video link. | |
* @param {string} url - a string representing the URL of a video from either YouTube or Vimeo. | |
* @returns A function that takes a string parameter `url` and returns a Promise. The function checks | |
* if the `url` matches a YouTube URL regex and if the video ID is 11 characters long. If it is a | |
* YouTube URL, the function creates an image element with the video thumbnail URL and checks if the | |
* image has a width of 120 pixels. If it does, the function rejects the Promise with | |
*/ | |
const YOUTUBE_URL_REGEX = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// POST: /checkFundingEligibility | |
// This API will check if the project is eligible for specific funding option of a funding cycle. | |
// 'request.json' | |
{ | |
// As each funding category is going to be unique with its own unique requirements | |
// | |
"fundingCategoryId": "1.0.6159e.c100c123", | |
"projectId": "1.0.3439e.c10012sf" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "b30bce21-92e6-4a66-823f-0be4ff103ac3", | |
"name": "Hopin API Collection", | |
"description": "This is the collection of the Hopin External APIs, for more info about APIs, visit [https://developer.hopin.com/external-api](https://developer.hopin.com/external-apiYou)\n\nYou may need to set some variables to execute the APIs as described given below.\n\nOnce you have the ID for the Organization you will need to update the variable value for `organizationId` under the collection folder titled `Hopin API Collection`. \nClick `Hopin API Collection` > `Variables`, update the `organizationId` with your Organization external ID and click `Save`. You can do the same to change/override any variable value.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Health Check", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// After the successfull project's eligiblity check for the specific funding option | |
// user can trigger this POST Http Call to submit their project for review round 🔍 | |
// POST: /fundingSubmissions 📝 | |
{ | |
"fundingCategoryId": "Unique id of the specific Funding Option of the current funding cycle", | |
"memberId": "Id of the member who submitted the application", | |
"projectId": "Id of the project submitted for this funding option", | |
"projectPosters": [ | |
{ | |
"id": "1.1.64116.af00006c", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET: "fundingCycles" HTTP call should return an array of past, present & future funding cycles/events on Centerframe | |
// GET: "fundingCycles/id" should return the specific funding cycle/event be it in Past, Present or Future | |
[ | |
{ | |
"id": "Unique id of the funding cycle", | |
"title": "Summer Funding Season", | |
"description": "Description of the Funding Cycle", | |
"submissionOpensAt": "2023-01-17T08:56:44Z", | |
"submissionEndsAt": "2023-01-20T08:56:44Z", | |
// Verifications/Approval of submissions by the Centerframe team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ReactPlayer | |
url={`/bin.oms/${videoId}`} | |
config={{ | |
file: { | |
hlsOptions: { | |
forceHLS: true, | |
debug: false, | |
xhrSetup: function (xhr, url) { | |
xhr.withCredentials = true; // do send cookies | |
xhr.setRequestHeader( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "1.0.6159e.c100dd1b", | |
"hasCarouselInfo": [ | |
{ | |
"id": "1.0.6159e.c100dd1a", | |
"content": "0.0.6159e.c100dc10", | |
"mimeType": "image/png", | |
"title": "Ravers", | |
"logLine": "log-line and not empty", | |
"description": "description and not empty", |
NewerOlder