Más contenido relacionado Similar a Flexing Sugar Platform: Session 9: Flexing Sugar Platform How to Take Advantage of the Viadeo professional social network (20) Flexing Sugar Platform: Session 9: Flexing Sugar Platform How to Take Advantage of the Viadeo professional social network2. Vincent ROLLIN
Cédric MOURIZARD
Co-Founder & CTO - @vincentrollin
Lead developer - @cedricmourizard
http://www.synolia.com - @synolia
http://slidesha.re/wVqkKi
4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 2
3. 1st historical SugarCRM Partner in the World &
SugarCRM leader in France since 2004
Specialized in high added value CRM projects
(250+ SugarCRM Customers) and modules
development (20+ module on SugarForge and
SugarExchange)
April 2012
Manage the French Sugar Community with
40,000 users
Active partner of Open+ developer program
Member of European SugarCRM Alliance
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 3
4. Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 4
5. Why, another connector?
SugarCRM includes a Cloud Connector Framework
which provides capability :
To display a widget or retrieve data from sources for all
users like Twitter widget or Hoovers data provider
To interact with External API to import data: Meetings,
Document or Feeds with per-user login like GoToMeetings
or LotusLive
VIADEO provides an API to gather info from your
contact network
SynoViadeo aims to bridge them
for a better user experience
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 5
6. How do we use the Sugar Cloud Connector
Framework
Recipe:
Declare an External Application source which provides:
Authentication method (OAuth with specifics for Viadeo API)
Interfaced service (WebFeed implementation for the
HomePage dashlet SugarFeed)
Format calls and response to Web Services
Define the eapm connector (Ext App Provider Module):
Each user decide or not to connect to the Ext App Source
Create the queries to External App Source
Display content like InsideView on Account and Contact
Manage import process
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 6
7. The Viadeo graph API
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 7
9. Files infrastructure
Upgrade safe implementation:
All files are in the custom directory:
Extend existing method
Create new methods
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 9
10. Declare an External Application source
4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 10
11. ExtAPISynoViadeo purpose of this class
1. Overriding oauthLogin method to adapt it with
Viadeo implementation
2. Implementing dedicated methods for the WebFeed
connector
3. Format calls and response to Web Services
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 11
13. oAuth authentication flow
The usual authentication flow (used for twitter)
The viadeo authentication flow
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 13
15. Management of the WebFeed
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 15
16. Management of the WebFeed
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 16
17. Management of the calls
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 17
18. Define the eapm connector
4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 18
19. EAPM Connector ext_eapm_synoviadeo class
1. Define on which modules the connector could be
used
2. Display information on each module
3. Import contacts from social network
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 19
20. Enable connector only on available modules
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 20
21. Enable connector only on available modules
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 21
22. Retrieve data and display them
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 22
23. Retrieve data and display them
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 23
24. Import my VIADEO contact network
Tweet: #SCON12 4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 24
25. Submit Session Feedback
Select the SugarCon Mobile App:
1) Tap on this session
2) Tap on survey
3) Submit your feedback
*Prizes for attendees who submit session feedback using the Mobile App
4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 25
26. #SCON12
4/26/2012 ©2012 SugarCRM Inc. All rights reserved. 26