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
| @RestResource(urlMapping='/messageToTask') | |
| global class MessageToTask { | |
| global class Result { | |
| public String guid; | |
| public String identifier; | |
| public String transcription; | |
| } | |
| @HttpPost | |
| global static void incomingMessage(Result result) { |
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <apex:page sidebar="false" | |
| showHeader="false" | |
| controller="ConnectorController" | |
| contentType="application/xml"> | |
| <Response> | |
| <Say>Hello {!callerName}. Connecting you with {!rep.Name}.</Say> | |
| <Pause/> | |
| <Dial>{!rep.Phone}</Dial> | |
| </Response> |
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
| global class MultiJSONResponseCalloutMock implements HttpCalloutMock { | |
| private HTTPResponse res; | |
| private Map<String, String> m; | |
| global MultiJSONResponseCalloutMock() { | |
| this.res = new HTTPResponse(); | |
| this.m = new Map<String, String>(); | |
| this.res.setStatusCode(200); | |
| this.res.setStatus('OK'); | |
| } |
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
| <apex:page > | |
| <script> | |
| var win = window.open('https://login.salesforce.com/secur/logout.jsp', '_blank'); | |
| setTimeout(function(){ win.close(); }, 2000); | |
| </script> | |
| <h1>Test Open/Close</h1> | |
| </apex:page> |
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
| <apex:page showHeader="false" sidebar="false" standardStylesheets="false" cache="false" controller="SiteLoginController"> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <title> | |
| login | |
| </title> | |
| <apex:stylesheet value="{!$Resource.login}"/> | |
| </head> |
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
| { | |
| "Username" : "[email protected]", | |
| "Alias" : "user", | |
| "Email" : "[email protected]", | |
| "FirstName" : "Test", | |
| "LastName" : "User", | |
| "ProfileId" : "PROFILE_RECORD_ID", | |
| "LanguageLocaleKey" : "en_US", | |
| "LocaleSidKey" : "en_US", | |
| "EmailEncodingKey" : "UTF-8", |
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
| <apex:page > | |
| <apex:includeScript value="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"/> | |
| <script> | |
| jQuery(document).ready(function($) { | |
| $('#queryform').submit(function(){ | |
| $.ajax($('#query').val(), | |
| { | |
| beforeSend: function(xhr) { | |
| xhr.setRequestHeader('Authorization', 'Bearer {!$Api.Session_ID}'); | |
| }, |
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
| <apex:page standardStylesheets="false" showHeader="false" sidebar="false" | |
| standardController="Merchandise__c" extensions="MobileInventoryExtension" | |
| recordSetVar="products"> | |
| <head> | |
| <title>Mobile Inventory</title> | |
| <meta name="viewport" | |
| content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> | |
| <apex:stylesheet value="{!URLFOR($Resource.jquerymobile130, 'jquery.mobile-1.3.0.min.css')}" /> |
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
| <apex:page standardStylesheets="false" showHeader="false" sidebar="false" | |
| standardController="Merchandise__c" extensions="MobileInventoryExtension" | |
| recordSetVar="products"> | |
| <head> | |
| <title>Mobile Inventory</title> | |
| <meta name="viewport" | |
| content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> | |
| <apex:stylesheet value="{!URLFOR($Resource.jquerymobile130, 'jquery.mobile-1.3.0.min.css')}" /> |