Here’s the .WICKOBJ that I made for my Pico Day game to give (Newgrounds) Players, Medals.
Zipped so I could upload it here: NG1.zip (16.1 KB)
To use it, simply include it in the Wick Editor:
Replace the App ID and Secret (app_id and secret variables in the objects Default script). You might also want to save the context where you placed the NG object.
And call project.ngUnlockMedal('MEDAL');
You can read about the whole thing here.