19+ results for 'php getopt repo:esilverman/PH Salesforce' (0 ms)
Not the results you expected?
SalesforceConnect.php (https://github.com/r1zib/salesforce.git) PHP · 146 lines
1 <?php
2 /*
3 * Permet de se connecter à Salesforce et de faire des requetes dans la base
5 *
6 */
7 require_once ('developerforce/soapclient/SforcePartnerClient.php');
8 require_once ('developerforce/soapclient/SforceEnterpriseClient.php');
10 class Application_Model_SalesforceConnect {
12 private static $_instance;
17 */
18 private function __construct () {
19 /* On se connecte à salesforce */
20 $this->connect();
21 }
FetchLeadsCommand.php (https://gitlab.com/mautic-master/mautic) PHP · 114 lines
1 <?php
2 /**
3 * @package Mautic
53 '-a',
54 InputOption::VALUE_OPTIONAL,
55 'Send time interval to check updates on Salesforce, it should be a correct php formatted time interval in the past eg:(-10 minutes)'
56 )
57 ->addOption('--force', '-f', InputOption::VALUE_NONE, 'Force execution even if another process is assumed running.');
72 $translator = $factory->getTranslator();
73 $integration = $input->getOption('integration');
74 $startDate = $input->getOption('start-date');
75 $endDate = $input->getOption('end-date');
76 $interval = $input->getOption('time-interval');
commons.php (https://bitbucket.org/kawadatetsuya/twilio.git) PHP · 143 lines
1 <?php
2 /*
3 * common methods
33 break;
34 case '503':
35 $message = 'API Salesforce Access Denied: '. $json;
36 break;
37 default:
61 * get NWF(CMS) data
62 *
63 * @param $kindOfApi string // kind of api ["search", "estimate"] reference: app/config/app.php
64 * @param $queries array // query strings
65 * @param $method string // kind of form method ["GET", "POST"]
106 /*
107 * make request uri
108 * @param $kindOfApi string // kind of api ["search", "estimate"] reference: app/config/app.php
109 * @param $queries array // query strings
110 * @param $uri
UserIOTest.scala (https://github.com/salesforce/TransmogrifAI.git) Scala · 88 lines
1 /*
2 * Copyright (c) 2017, Salesforce.com, Inc.
3 * All rights reserved.
4 *
29 */
31 package com.salesforce.op.cli.gen
33 import com.salesforce.op.test.TestCommon
56 Spec[UserIO] should "do qna" in {
57 // @see https://www.urbandictionary.com/define.php?term=aks
58 def aksme(q: String, answers: String*): Option[String] = {
59 Oracle(answers: _*).qna(q, _.length == 1, Map("2*3" -> "6", "3+2" -> "5"))
69 it should "ask" in {
71 // @see https://www.urbandictionary.com/define.php?term=aks
72 def aksme[Int](q: String, opts: Map[Int, List[String]], answers: String*): (String, Int) = {
73 val console = Oracle(answers: _*)
RefreshWsdlCommand.php (https://bitbucket.org/cerilo/salesforce-bundle.git) PHP · 86 lines
1 <?php
2 namespace Phpforce\SalesforceBundle\Command;
4 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
11 /**
12 * Fetch latest WSDL from Salesforce and store it locally
13 *
14 * @author David de Boer <david@ddeboer.nl>
22 {
23 $this
24 ->setName('phpforce:refresh-wsdl')
25 ->setDescription('Refresh Salesforce WSDL')
27 'Refreshing the WSDL itself requires a WSDL, so when using this'
28 . 'command for the first time, please download the WSDL '
29 . 'manually from Salesforce'
30 )
31 ->addOption(
LoginTests.java (https://code.google.com/p/forceworkbench/) Java · 144 lines
18 public void testAutoLoginUnPwStartUrl() throws Exception{
19 setApiVersion(config.getApiVersion());
20 selenium.open("login.php?&un=" + config.getUsername() + "&pw=" + config.getPassword() + "&startUrl=query.php");
21 selenium.waitForPageToLoad(WAIT_TIMEOUT);
22 assertEquals("Workbench: SOQL Query", selenium.getTitle());
60 public void testAdvLoginJumpTo() throws Exception {
61 selenium.open("login.php");
62 selenium.click("loginType_adv");
63 selenium.open("login.php");
108 public void testAdvLoginInstances() throws Exception {
109 selenium.open("login.php");
110 selenium.click("loginType_adv");
111 for (String inst : selenium.getSelectOptions("inst")){
EnglishProController.cls (https://bitbucket.org/allanoricil/qa-fase-2.git) Visual Basic for Applications · 186 lines
67 WHERE p.Institui_o_n__c = :selectedCampus and
68 p.Periodo_Letivo__c != null and
69 p.Formul_rio_Salesforce__c = true and
70 p.Ativo__c = true and
71 p.Inscri_o__c = true and
102 String selectedProcess = apexpages.currentpage().getparameters().get('parmSelectedProcessoSeletivo');
103 if(selectedProcess != null && selectedProcess != ''){
104 List<Oferta__c> lstOffers = [Select o.Id, o.Name From Oferta__c o where o.Processo_seletivo__c = :selectedProcess and Formul_rio_Salesforce__c = true];
105 for(Oferta__c o : lstOffers){
106 programsItems.add(new SelectOption(o.Id, o.Name));
UserMapper_TEST.cls (https://github.com/SalesforceFoundation/HEDAP.git) Visual Basic for Applications · 179 lines
1 /*
2 Copyright (c) 2021, Salesforce.org
3 All rights reserved.
4 Redistribution and use in source and binary forms, with or without
9 notice, this List of conditions and the following disclaimer in the
10 documentation and/or other materials provided with the distribution.
11 * Neither the name of Salesforce.org nor the names of
12 its contributors may be used to endorse or promote products derived
13 from this software without specific prior written permission.
26 */
27 /**
28 * @author Salesforce.org
29 * @date 2021
30 * @group
csv.php
(http://forceworkbench.googlecode.com/svn/trunk/workbench/)
PHP · 75 lines
✨ Summary
This PHP script demonstrates how to use the Salesforce Bulk API Client to create a new job, add batches of data, and monitor the status until completion. It creates a sample CSV file with two records, sends them to the Bulk API for processing, and then prints out the original CSV data, batch results, and client logs.
This PHP script demonstrates how to use the Salesforce Bulk API Client to create a new job, add batches of data, and monitor the status until completion. It creates a sample CSV file with two records, sends them to the Bulk API for processing, and then prints out the original CSV data, batch results, and client logs.
1 <?php
2 // STEP 1: OBTAIN SESSION ID AND ENDPOINT FROM PARTNER API. REPLACE WITH YOUR ENDPOINT AND SESSION ID.
3 // For demo purposes, these can just be GET parameters on this page, but should be
4 // obtained from the login() call using the Force.com Partner API with a username and password.
5 // In PHP, it is recommended to use the PHP Toolkit to call the Partner API. For more info:
6 //
7 // Partner API Doc: http://www.salesforce.com/us/developer/docs/api/index.htm
8 // PHP Toolkit: http://wiki.developerforce.com/index.php/PHP_Toolkit
9 //
10 // If these required parameters are not provided, you will be redirected to index.php,
13 if (!isset($_REQUEST["partnerApiEndpoint"]) || !isset($_REQUEST["sessionId"])) {
14 header("Location: index.php") ;
15 }
SFDCAccessController.cls (https://github.com/ForceDotComLabs/survey-force.git) Visual Basic for Applications · 401 lines
4 * This file is part of the Open Web Application Security Project (OWASP)
5 * Enterprise Security API (ESAPI) project. For details, please see
6 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
7 *
8 * Copyright (c) 2010 - Salesforce.com
9 *
10 * The Apex ESAPI implementation is published by Salesforce.com under the New BSD license. You should read and accept the
11 * LICENSE before you use, modify, and/or redistribute this software.
12 *
13 * @author Yoel Gluck (securecloud .at. salesforce.com) <a href="http://www.salesforce.com">Salesforce.com</a>
14 * @created 2010
15 */
BaseTestCase.php (https://gitlab.com/vietcoop/sync.app.git) PHP · 182 lines
13 use SyncCenterTestManager;
15 abstract class BaseTestCase extends PHPUnit_Framework_TestCase
16 {
91 * @return ServiceInstanceEntity
92 */
93 protected function dummySalesforceServiceInstance()
94 {
95 return ServiceInstanceEntity::fromArray([
113 $_dest = [
114 'service_instance' => $destination === 'drupal' ? $this->dummyDrupalServiceInstance() : $this->dummySalesforceServiceInstance(),
115 'entity_type' => $destination === 'drupal' ? 'drupal.entity' : 'salesforce.entity',
120 $mapping['drupal'][] = ['source' => 'uid', 'destination' => 'drupal_id__c'];
121 $mapping['drupal'][] = ['source' => 'mail', 'destination' => 'Mail'];
122 $mapping['salesforces'][] = ['source' => 'Id', 'destination' => 'field_salesforce_id'];
123 $mapping['salesforces'][] = ['source' => 'Id', 'Mail' => 'mail'];
QueueProcessControllerTest.php (https://gitlab.com/vietcoop/sync.app.git) PHP · 100 lines
9 use GoCatalyze\SyncCenter\Extensions\Drupal\DrupalEntity;
10 use GoCatalyze\SyncCenter\Extensions\Drupal\DrupalService;
11 use GoCatalyze\SyncCenter\Extensions\Salesforce\SalesforceEntity;
12 use GoCatalyze\SyncCenter\Extensions\Salesforce\SalesforceService;
27 // Dummy
28 /* @var $sync_mapping SyncMappingEntity */
29 $job = $this->dummyQueueItem('drupal', 'salesforce', 'create', $this->dummyDrupalInput());
30 $sync_mapping = $job->getArgs()['sync_mapping'];
31 $si = $sync_mapping->getSourceServiceInstance();
32 $di = $sync_mapping->getDestinationServiceInstance();
33 $drupal_service = new DrupalService();
34 $drupal_service->setConfiguration($si->getOptions());
35 $drupal_entity = new DrupalEntity();
36 $drupal_entity->setAttributeValues($job->getArgs()['attributes']);
53 // Mock › Salesforce client
54 $sf_client = $this->getMock('GoCatalyze\SyncCenter\Extensions\Salesforce\SalesforceClient');
55 $sf_client->expects($this->once())
56 ->method('doCreate')
README.md (https://github.com/rrmartins/rhocrm.git) Markdown · 128 lines
7 With Rhocrm, you can utilize the pre-built set of [RhoSync](http://rhomobile.com/products/rhosync/) applications
8 for popular CRM backends (SalesForce, Oracle CRM On Demand, Sugar CRM, etc.). Also, this library includes support for writing your own [RhoSync](http://rhomobile.com/products/rhosync/)
9 CRM applications to extend or customize the default functionality.
126 Created and maintained by Rhomobile Inc.
128 Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
SyncMappingEntityControllerTest.php (https://gitlab.com/vietcoop/sync.app.git) PHP · 109 lines
1 <?php
3 namespace GoCatalyze\SyncApp\Testing\Controller;
35 {
36 $data = [
37 'service_name' => 'salesforce',
38 'description' => 'A demo Salesforce Instance',
65 'destination' => [
66 'service_instance' => $this->createSaleforceInstance(),
67 'entity_type' => 'salesforce.entity',
68 'remote_entity_type' => 'Contact',
69 ],
TSalesforceGetServerTimestampBeginJava.java (https://bitbucket.org/krabuzin/mp_jobs) Java · 188 lines
1 package org.talend.designer.codegen.translators.business.salesforce;
3 import org.talend.core.model.process.INode;
9 import java.util.List;
11 public class TSalesforceGetServerTimestampBeginJava
12 {
13 protected static String nl;
14 public static synchronized TSalesforceGetServerTimestampBeginJava create(String lineSeparator)
15 {
16 nl = lineSeparator;
17 TSalesforceGetServerTimestampBeginJava result = new TSalesforceGetServerTimestampBeginJava();
18 nl = null;
19 return result;
wk.php (https://bitbucket.org/Digital18/test.git) PHP · 48 lines
SFWebtoLead.php (https://github.com/jorgeguberte/Salesforce-Web-To-Lead-PHP-Wrapper.git) PHP · 81 lines
PushLeadActivityCommand.php (https://bitbucket.org/pipehline/mautic-imachine.git) PHP · 111 lines
1 <?php
3 /*
54 '-a',
55 InputOption::VALUE_OPTIONAL,
56 'Send time interval to check updates on Salesforce, it should be a correct php formatted time interval in the past eg:(-10 minutes)'
57 )
58 ->addOption('--force', '-f', InputOption::VALUE_NONE, 'Force execution even if another process is assumed running.');
73 $translator = $factory->getTranslator();
74 $integration = $input->getOption('integration');
75 $startDate = $input->getOption('start-date');
76 $endDate = $input->getOption('end-date');
77 $interval = $input->getOption('time-interval');