The Social Share Code Libraries project provides source code libraries for writing code that uses sharing on social-media.
All code is released under the permissive BSD-3-Clause License, so you should be able to use it in any of your projects, even if they are not permissively licensed like the BSD-3-Clause License.
This is a sub-project of Social Share URL's, a project for documenting the sharing URL API's of third-party, social-media websites. Check out more about us here :
https://github.com/bradvin/social-share-urls
https://github.com/bradvin/social-share-urls/tree/master/code/
Online Demo
:
- Peter Kropotkin : Ethics: Origin and Development
- EarthFluent.com : Learn Indonesian Online
- List Keywords : Finding and Listing Your Keywords For You
Code Sandbox
:
Sample Use
:
func SocialMediaDefault() SocialMedia {
sm := SocialMedia{
title:"EarthFluent",
url:"http%3A%2F%2Fwww.earthfluent.com%2F",
desc:"Want%20to%20learn%20another%20language%3F%20%20Learn%20Spanish%2C%20French%2C%20Italian%2C%20German%2C%20Japanese%2C%20Chinese%2C%20Hindi%2C%20Indonesian%2C%20Dutch%2C%20Polish%2C%20Portuguese%2C%20or%20Russian%21",
}
return sm
}
func main(){
sm := SocialMediaInterface()
for i := 0; i < 37; i++ {
fmt.Println(sm.urlsOrderedByPopularity[i] + " : " + sm.urls[i]);
}
}
Library Files
: