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
try { | |
$url = 'https://api.paystack.co/bank/resolve?account_number='.$bankAccountNumber.'&bank_code='.$bankCode; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); | |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 400); |
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
//Firebase Auth instance | |
const auth = firebase.auth(); | |
const email = fornData.email_address; | |
const password = fornData.password; | |
const promise = auth.signInWithEmailAndPassword(email, password); | |
promise.then(function (user) { | |
// get the current loggeg in users details | |
console.log(user); | |
}) |
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
//Firebase Auth instance | |
const auth = firebase.auth(); | |
//Firebase Database instance | |
const database = firebase.database(); | |
//get all input element as an array | |
var formData = formToArray('signUp'); | |
const email = formData.email_address; | |
const password = formData.password; |
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
//Firebase Auth instance | |
const auth = firebase.auth(); | |
const email = fornData.email_address; | |
const password = fornData.password; | |
const promise = auth.createUserWithEmailAndPassword(email, password); | |
promise.then(function (user) { | |
// get the current loggeg in users details | |
console.log(user); | |
}) |
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
<?php pr($list); ?> |
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
<?php pr($list); ?> |
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
{ | |
"Events": { | |
"event_one": { | |
"event_name": "Global event", | |
"event_location": "Lagos Ikeja", | |
"event_created": 16082017, | |
"event_active": "active", | |
"Speakers": { | |
"0": "speaker_one", | |
"1": "speaker_two", |
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
<?php | |
class ApiController extends AppController { | |
const ERR_ERROR = 200; | |
const ERR_BUNDLE_ERROR = 201; | |
const ERR_FORM_VALIDATION_ERROR = 301; | |
const ERR_DUPLICATE = 100; | |
const ERR_EMPTY_DATA = 400; |