Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 651 Bytes

File metadata and controls

23 lines (17 loc) · 651 Bytes

#ChangeOrgApiOrganization.getId

Returns the unique Change.org ID for the specified organization.

Reference: [https://github.com/change/api_docs/blob/master/v1/documentation/resources/organizations.md#get-organizationsget_id]

Example

var client=new ChangeOrgApiClient({
	api_key	: 'YOUR_API_KEY',
	secret 	: 'YOUR_SECRET_KEY'
});

var organization=new ChangeOrgApiOrganization(client);

organization.getId('http://www.change.org/organizations/joe_schmoe_inc',function(response) {
	console.log(JSON.stringify(response.getData()));
});

// Console Output:
// {"result":"success","organization_id":123456}