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
/* ========================================================================== | |
Model | |
============================================================================= */ | |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Exchange_calculator_model extends CI_Model { | |
public function __construct() { | |
$this->load->database(); | |
} | |
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
// http://www.jqapi.com/#p=jQuery.ajax | |
var email = $("input#email").val(); | |
var user = $("input#user").val(); | |
var pass = $("input#pass").val(); | |
var dataToSend = { | |
email: email, | |
username: user, | |
password: pass |
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
{ | |
"option_settings": [ | |
{ | |
"option_name":"foo", | |
"value": "fooisfoo" | |
}, | |
{ | |
"option_name": "DEPLOYMENT", | |
"value": "development" | |
}, |
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
import json, base64, pprint | |
import requests as r | |
requests.packages.urllib3.disable_warnings() | |
def make_request(username, password): | |
RI_API_USER = username | |
RI_API_PASSWORD = password | |