Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Seattle Dev Garage

615 visualizaciones

Publicado el

Publicado en: Tecnología
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Seattle Dev Garage

  1. 1. WIFIBGI.SEABGI2003cb4g!
  2. 2. Safe HarborSafe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-lookingstatements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions provesincorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-lookingstatements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projectionsof subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management forfuture operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments andcustomer contracts or use of our services.The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering newfunctionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate ofgrowth, interruptions or delays in our Web hosting, breach of our security measures, risks associated with possible mergers andacquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivateour employees and manage our growth, new releases of our service and successful customer deployment, our limited history resellingnon-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that couldaffect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal quarter endedJuly 31, 2011. This document and others are available on the SEC Filings section of the Investor Information section of our Web site.Any unreleased services or features referenced in this or other press releases or public statements are not currently available and maynot be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features thatare currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  3. 3. public class HelloWorld { public string getEmail() { return joshua.birk@salesforce.com; } public string getTwitter() { return ’@joshbirk; } public string getGithub() { return https://github.com/joshbirk;
  4. 4. CanvasFramework for using third party apps within Salesforce
  5. 5. OAuthIndustry standard method of user authentication
  6. 6. OAuth2 Flow Sends App Credentials User logs in, Token sent to callback Remote Salesforce Application Confirms token Platform Send access token Maintain session with refresh token
  7. 7. http://workbench.developerforce.com
  8. 8. http://workbench.developerforce.com
  9. 9. Signed RequestEncrypted authentication message to client
  10. 10. Decoding//In Canvas via SignedRequest/POST, the authentication should be passed via thesigned_request header$signedRequest = $_REQUEST[signed_request];$consumer_secret = $_ENV[consumer_secret];if ($signedRequest == null || $consumer_secret == null) { echo "Error: Signed Request or Consumer Secret not found";}//decode the signedRequest$sep = strpos($signedRequest, .);$encodedSig = substr($signedRequest, 0, $sep);$encodedEnv = substr($signedRequest, $sep + 1);$calcedSig = base64_encode(hash_hmac("sha256", $encodedEnv,$consumer_secret, true));if ($calcedSig != $encodedSig) { echo "Error: Signed Request Failed. Is the app in Canvas?";
  11. 11. https://github.com/joshbirk/Canvas-PHP
  12. 12. Apex EndpointsExposing Apex methods via SOAP and REST
  13. 13. Apex SOAPglobal class MyWebService { webService static Id makeContact(String lastName, Account a) { Contact c = new Contact(lastName = Weissman, AccountId = a.Id); insert c; return c.id; }}
  14. 14. Apex REST@RestResource(urlMapping=/CaseManagement/v1/*)global with sharing class CaseMgmtService{ @HttpPost global static String attachPic(){ RestRequest req = RestContext.request; RestResponse res = Restcontext.response; Id caseId = req.requestURI.substring(req.requestURI.lastIndexOf(/)+1); Blob picture = req.requestBody; Attachment a = new Attachment (ParentId = caseId, Body = picture, ContentType = image/
  15. 15. http://bit.ly/gist_apex_cfprest
  16. 16. Apex JSONMethods to serialize and deserialize JSON Objects
  17. 17. SerializationDatetime dt = Datetime.newInstance( Date.newInstance( 2011, 3, 22), Time.newInstance( 1, 15, 18, 0)); String str = JSON.serialize(dt); System.assertEquals( "2011-03-22T08:15:18.000Z", str);
  18. 18. DeserializationDecimal n = (Decimal)JSON.deserialize( 100.1, Decimal.class);System.assertEquals(n, 100.1);Car c = (Car)JSON.deserializeStrict( {"make":"SFDC","year":"2020"}, Car.class); System.assertEquals(c.make, SFDC); System.assertEquals(c.year, 2020);Map<String, Object> m = (Map<String, Object>) JSON.deserializeUntyped(jsonInput);
  19. 19. http://bit.ly/gist_apex_flickr
  20. 20. Polyglot FrameworkPaaS allowing for the deployment of multiple languages
  21. 21. Github Repo Heroku Pull / Push Push DeploymentsDevelopment Changes Monitor Application Local Repo $ git push heroku master Counting objects: 67, done. Delta compression using up to 4 threads. Compressing objects: 100% (53/53), done. Writing objects: 100% (67/67), 26.33 KiB, done. Total 67 (delta 5), reused 0 (delta 0)
  22. 22. Double-click to enter titleDouble-click to enter text http://developer.force.com

×