Magento Imgine eCommerce Conference February 2011: Mashup of Magento and SalesForce.com
- 3. Agenda Cloud Conversion BackgroundCloudGento -- What, Why and How We Do ItMagento API Best PracticesCommon Pitfalls to AvoidMagentoGoOpportunities for Cloud DevelopersLive Demos!Q & A
- 4. Cloud Conversion BackgroundAbout Cloud ConversionWe know eCommerceFounded February 2009 in Park City, UTFocus: Build innovative eCommerce applicationsMission: Solve real-world business challengesPrimary Products: eCommSource & CloudGentoSelf-fundedTeam consists of cloud evangelists with over 25 years experience in eCommerce, CRM and ERP.
- 7. CloudGento - What, Why and How We Do ItOverviewIntegrating B2B and B2C OperationsStreamlining Customer Service and SupportManaging RMAs and ReplacementsManaging Inventory across Multiple ChannelsReporting & AnalyticsWorkflow, Visual Flow and SecurityMarketing Initiatives (VerticalResponse, MailChimp, etc)
- 10. Getting StartedMake sure API Endpoint is accessible i.e. – http://www.samplesite.com/api/v2_soapDefine API User and Appropriate RolesSystem -> Web ServicesWSDL can be found at http://www.samplesite.com/api/v2_soap?wsdl=1
- 13. Basic Magento API FlowMake login request with username/API key -> SessionIDStore SessionID to make subsequent API callsCall endSession (optional)
- 14. Basic Magento API CallsloginstartSessionendSessionresourcesglobalFaultsresourceFaults
- 15. Available Customer and Order API CallsdirectoryCountryListdirectoryRegionListcustomerCustomerListcustomerCustomerCreatecustomerCustomerInfocustomerCustomerUpdatecustomerCustomerDeletecustomerGroupListcustomerAddressListcustomerAddressCreatecustomerAddressInfocustomerAddressUpdatecustomerAddressDeletesalesOrderListsalesOrderInfosalesOrderAddCommentsalesOrderHoldsalesOrderUnholdsalesOrderCancelsalesOrderShipmentListsalesOrderShipmentInfosalesOrderShipmentCreatesalesOrderShipmentAddCommentsalesOrderShipmentAddTracksalesOrderShipmentRemoveTracksalesOrderShipmentGetCarrierssalesOrderInvoiceListsalesOrderInvoiceInfosalesOrderInvoiceCreatesalesOrderInvoiceAddCommentsalesOrderInvoiceCapturesalesOrderInvoiceVoidsalesOrderInvoiceCancel
- 16. Available Product and Category CallscatalogProductAttributeCurrentStorecatalogProductAttributeListcatalogProductAttributeOptionscatalogProductAttributeSetListcatalogProductTypeListcatalogProductAttributeTierPriceInfocatalogProductAttributeTierPriceUpdatecatalogCategoryAttributeCurrentStorecatalogCategoryAttributeListcatalogCategoryAttributeOptionscatalogProductAttributeMediaCurrentStorecatalogProductAttributeMediaListcatalogProductAttributeMediaInfocatalogProductAttributeMediaTypescatalogProductAttributeMediaCreatecatalogProductAttributeMediaUpdatecatalogProductAttributeMediaRemovecatalogProductLinkListcatalogProductLinkAssigncatalogProductLinkUpdatecatalogProductLinkRemovecatalogProductLinkTypescatalogProductLinkAttributescatalogCategoryCurrentStorecatalogCategoryTreecatalogCategoryLevelcatalogCategoryInfocatalogCategoryCreatecatalogCategoryUpdatecatalogCategoryMovecatalogCategoryDeletecatalogCategoryAssignedProductscatalogCategoryAssignProductcatalogCategoryUpdateProductcatalogCategoryRemoveProductcatalogProductCurrentStorecatalogProductListcatalogProductInfocatalogProductCreatecatalogProductUpdatecatalogProductSetSpecialPricecatalogProductGetSpecialPricecatalogProductDelete
- 18. Best Practices & Common Pitfalls to AvoidKeep track of Increment Ids!Make Sure the API is properly setup & enabledMonitor API Calls and Don’t Overload the APIUnderstand Complex Filters and Associative EntitiesAlways use SSL and Encrypt API TokensDon’t Be Afraid to Mash-up Other ServicesBuild a Custom API in PHP
- 19. REST API via OpenSocial/Shindig!oAuth SupportGadgets and Widgets to extend the site and adminAbility to offer Free trialsEnd goal: “If you can do it in the UI, you can do it via a service”Future support for push notifications
- 20. oAuth OverviewOpen protocol (oAuth.net) for secure API authorization in a“simple” and standard method from applications. AllowsMagentoGo accounts to be connected to 3rd partyapplications without the account owner having to share theirpassword and they can revoke access at any time.Notable oAuth Implementations: Salesforce.com, LinkedIn, Twitter, Facebook, LivePerson, Magento, etc
- 21. The oAuth DanceAcquire key and consumer secretAsk for a request token and specify your callbackDirect the user to the Magento authorization screenReceive a callback to the URL your specifiedAsk for an access tokenMake API calls!
Editor's Notes
- So what does this all mean? There are 4 steps to building an app on the Force.com platform