This file contains hidden or 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
| import { Request, Response } from "express" | |
| import { validationResult } from "express-validator" | |
| import slug from "slug" | |
| import formidable from "formidable" | |
| import { v4 as uuid } from "uuid" | |
| import cloudinary from "../config/cloudinary" | |
| import User from "../models/User" | |
| import { checkPassword, hashPassword } from "../utils/auth" | |
| import { generateJWT } from "../utils/jwt" |
This file contains hidden or 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
| require 'net/http' | |
| require 'uri' | |
| require 'json' | |
| require 'minitest/autorun' | |
| class EasyBrokerClient | |
| BASE_URL = 'https://api.stagingeb.com/v1' | |
| def initialize(api_key) | |
| @api_key = api_key |