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
# Analyzer.rb - Getting input from user | |
p "What is your first name?" | |
first_name = gets.chomp | |
puts "What is your last name?" | |
last_name = gets.chomp | |
# String Interpolation | |
full_name = "#{first_name} #{last_name}" |
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" : 2, | |
"userName" : "John.Doctor", | |
"fullName" : "John Doctor", | |
"uuid" : null, | |
"roles" : [ "doctor" ], | |
"permissions" : null, | |
"email" : "fake embedded email", | |
"telephoneNumber" : "fake embedded telephoneNumber", | |
"ward" : "fake embedded ward", |
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
public function actionDcc_send_pin_vocal() { | |
$medium = $this->validateRequestByMedium(); | |
if(!($medium == 'web_customer' || $medium == 'dealer')) { | |
Response::forbidden()->output(); | |
die; | |
} | |
$input = file_get_contents('php://input'); | |
$input = json_decode($input, true); | |
$id_pratica = @$input['id_pratica']; |