-
Notifications
You must be signed in to change notification settings - Fork 123
Hello Contacts Example
smurthas edited this page Jul 26, 2011
·
15 revisions
The easiest way to get going is to copy and paste the code in Locker/Apps/skeleton into a new directory for your connector. Let's pretend there isn't a yet a Hello Contacts app (we'll use "HelloContactsExample" as the name so nothing bad happens):
cd Apps
mkdir HelloContactsExample
cd HelloContactsExample
cp -r ../skeleton/* .
The first thing we'll want to do is change the name of the .connector manifest file:
mv skeleton.connector HelloContactsExample.connector
Now let's edit that file. The only things that MUST be changed is the handle field.
{
"title":"Hell Contacts Example",
"action":"Just barely view my contacts",
"desc":"More of an example than anything",
"run":"node init.js",
"status":"unstable",
"handle":"hellocontactsexample"
}
Now we're ready to run.
cd ../..
node lockerd.js
- Then open up the dashboard at http://localhost:8042 and navigate to the Services section.
- Click the "[show unstable]" link in the top right hand corner. "Foursquare Example" should now be listed as an installable connector.
- Click the Install Connector button.
The connector should now install and take you to the auth page. Follow the instructions from there.
You've made your first connector!