The Zing OpenPlatform APIs help apps and games integrate with the ZingMe social platform. They provide OAuth authentication, access to user data via Graph APIs, payment processing through ZingCredits, and social plugins. SDKs are available for common languages. The APIs cover authentication, accessing profiles, friends, feeds and more. Payment APIs allow checking balances, requesting billing and updating results. Tips are provided on building successful apps on ZingMe focusing on performance and scalability. Case studies highlight popular games and apps already using the platform.
2. Nội dung
1 Overview
2 SocialAPI (OAuth-2.0 + GraphAPIs)
3 ZingCredits Payment APIs
4 ZingMe Social Plugins
5 Tips : when building app/game on ZingMe
6 Case study
3. Overview
• Zing OpenPlatform APIs help your app/game :
– Authorize ZingMe users
– Access to ZingMe user’s resouces
– Gain money with ZingCredits payment platform
– Integrate your app/game into ZingMe platform
– Reach to ZingMe user’s easily
Provider
GraphAPIs
Authorize
Grant
Permissions
User/Owner
Consumer
Resource
4. ZingMe SocialAPI
• Authentication :
• Comply with OAuth-2.0 flow
• Support in-canvas and out-canvas context
• GraphAPI (user’s graph)
• Profile
• Friends
• Feeds
• Fans
• Next : photo, stats of feed, game notify,….
5. ZingMe SocialAPI (cont’d)
• SDK language support :
• PHP
• Java
• C++
• C#
• Android (new)
• iOS (new)
• Fully document
6. ZingMe SocialAPI (cont’d)
• Flow to integrate app/game on ZingMe
• Register app/game for sandbox/dev env
• Register app/game for live/production env
• Which info to register app/game
1. appname (only letters a-z,0-9,'_','-' and not include special characters such as *,&,^....)
2. title of app (will be displayed on caption of browser)
3. callbackurl of your app
4. programming language of game in back-end so we can deliver the client library.
5. game short description or user guide of game (if any)
7. ZingCredits Payment APIs
• ZingMe user had pay-letter
• Input : Zing card, SMS, Internet banking …
• Payment method :
• Easily
• Security
• User confirmation flow
• APIs for app/game :
• ZingCredits endcode/decode library
• Check balance / Request billing
• Implement updateResult callback
8. ZingCredits Payment APIs (cont’d)
• ZingCredits user’s flow
2. GET pay-credits-me.zing.vn/billing...
Client Browser
1. Build billing URL
Zing Credits
App/Game Server
3. Update Result
(Commit transaction)
9. ZingCredits Payment APIs (cont’d)
• ZingCredits APIs language support
• PHP (linux centos-64bit)
• JAVA
• C#
• C++
10. ZingCredits Payment APIs (cont’d)
• ZingCredits APIs : app/game info to register on
sandbox/live env
1. Title of App/Game : will be shown on UI, the length of title less than 256 characters.
2. Description of app/game : the length less than 1024 characters.
3. App URL of ZingMe
4. UpdateResultURL : the url which ZingCredits call request UpdateResult
(commit transaction) after process payment confirmation from user.
5. Icon of app 64x64 pixels
12. Tips : when building app/game on ZingMe
• 4 key notes when building app/game
– User like webgame/hardcode game but also like
minigame, specific apps (like app “sach”, “sharefile”),
e-commerce (like app “nhommua”), utility (like app “e-
card”)
– Build your app ASAP
– Users ready pay money on mobile env
– Performance is very important
13. Tips : when building app/game on ZingMe
• Session managements
• Caching data (profile, friends) to improve
performance
• Refresh caching data by user manually
• Design app/game can be upgraded/scalable