Answer the question
In order to leave comments, you need to log in
Development of an application for social media networks. api set
A social application is being developed. networks, each of them has its own api, its own libs.
Surely there is a convenient way not to keep several versions of the code for different networks, but to create some build configurations that will connect the necessary libs, for example. "vk" and "mail"?
ps. Development is in flashdevelop 4
Answer the question
In order to leave comments, you need to log in
A convenient way is to contact the publisher. I know for sure that Game Insight has its own AS-library, which does almost what you need, even better - you don’t need to make separate assemblies, you just need to determine which network the application is running on and tell the library about it. I personally worked with her, quite ok. Further, there I-Jet released its "Connector", Picsonic seems to have something similar. We are sawing our solution in our company, because there was experience and a vision of how it should work.
But the option with the publisher apparently does not suit you? As for open solutions, I didn’t find them (I searched in the winter-spring, I didn’t find it, in general, my thesis work was writing such a library =)). Well, in principle, this is not difficult to do, especially for 3 domestic networks. Find out which network you are in (you can push the parameter into the flashwars from the iframe, or if this is a flash application to look for occurrences of "vk" or "mail" in the url'e), make a wrapper for the getFriendsProfiles(callback) method, for example, and depending on grids, pull the methods of the required library, process the response and send it to the callback in a digestible universal form. But all this, of course, takes time, and you wanted a ready-made solution.
I can, if you want, in the evening tell in more detail about the implementation, and about the pitfalls and unpleasant moments, write)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question