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 | |
// Avoid clashes with classes defined in SforceHeaderOptions.php | |
namespace metadata; | |
// PHP classes corresponding to the data types in defined in WSDL | |
class checkDeployStatus { | |
/** | |
* @var string |
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 | |
require_once ('soapclient/SforcePartnerClient.php'); | |
define("SF_SECURITY_TOKEN", getenv("SECURITY_TOKEN")); | |
define("SF_USERNAME", getenv("USERNAME")); | |
define("SF_PASSWORD", getenv("PASSWORD")); | |
$mySforceConnection = new SforcePartnerClient(); | |
$mySforceConnection->createConnection("soapclient/partner.wsdl.xml"); | |
$response = $mySforceConnection->login(SF_USERNAME, SF_PASSWORD.SF_SECURITY_TOKEN); |
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
<apex:page controller="FriendsController"> | |
<script src="https://connect.facebook.net/en_US/all.js"></script> | |
<div id="fb-root"></div> | |
<script> | |
// Get required permissions from the controller | |
var permissions = '{!permissions}'; | |
var permlist = permissions.split(','); | |
var reqperms = ''; | |
FB.init({appId: '{!appId}', xfbml: true, cookie: true}); |
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
<apex:page controller="HelloController"> | |
<script src="https://connect.facebook.net/en_US/all.js"></script> | |
<div id="fb-root"></div> | |
<script> | |
// Get required permissions from the controller | |
var permissions = '{!permissions}'; | |
var permlist = permissions.split(','); | |
var reqperms = ''; | |
FB.init({appId: '{!appId}', xfbml: true, cookie: true}); |
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
/* receive e-mail */ | |
void receive_mail(char *filename, int sock_fd) | |
{ | |
/* file descriptor for destination file */ | |
int destination_fd; | |
/* byte offset used by sendfile */ | |
off_t offset = 0; | |
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
@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 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 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 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 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
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |