
Introducing Trailhead ForceLeaderBoard API
Great power comes with great responsibility!!!
Now its time to take your trailhead and certificate data to your platform. Just a simple API call and you will be with your trailhead data.
How does it work?
You make a call and get the JSON response. Now convert this response to your app, pages, and blogs.
Get your Trailblazer ID:
Go to the Join Board and Sign in/Sign up. You will see Trailblazer ID here.
https://forceleaderboard-developer-edition.na50.force.com/apex/profile
API Explorer:
Navigate to the APIs tab https://forceleaderboard-developer-edition.na50.force.com/apex/apiexplorer on Force Leader Board.
APIs...
Trailblazer Profile API Call:
- Description: You will get trailblazer profile data using this call with your unique Trailblazer ID.
- Method: GET
- Response Type: JSON
Sample Call:
Request:
https://forceleaderboard-developer-edition.na50.force.com/services/apexrest/trailblazer?id=YOUR_TRAILBLAZER_ID
Response:
{ "Twitter": "https://twitter.com/TheVishnuKumar", "Trailhead_URL": "https://trailhead.salesforce.com/en/me/thevishnukumar", "TrailblazerID": "YOUR_TRAILBLAZER_ID", "Title": "Senior Salesforce Developer", "Rank": "mountaineer", "Profile_Image": "https://developer.salesforce.com/forums/profilephoto/729F00000006Fi2/F", "Points": 33925, "Name": "Vishnu Kumar", "Linkedin": "https://www.linkedin.com/in/vishnukumarramawat/", "Facebook": "https://www.facebook.com/Myself.Vishnu.Kumar", "Certifications": 2, "Certification_URL": "http://certification.salesforce.com/certification-detail-print?conId=003G000002FKLb0IAH", "Badges": 33 }
I am getting this error
INVALID_SESSION_ID
Session expired or invalid