get https://api.fulcrumapp.com/api/v2/memberships.json
API Library Examples
from fulcrum import Fulcrum
fulcrum = Fulcrum('{token}')
memberships = fulcrum.memberships.search()
for membership in memberships['memberships']:
# print(membership) # entire membership
print(membership['user']) # just the user name
const { Client } = require('fulcrum-app');
const client = new Client('{token}');
client.memberships.all()
.then((page) => {
page.objects.forEach(membership => {
// console.log(membership); // entire membership
console.log(membership.user); // just the user name
});
})
.catch((error) => {
console.log(error.message);
});
require 'fulcrum'
client = Fulcrum::Client.new('{token}')
memberships = client.memberships.all()
for membership in memberships.objects do
# puts membership # entire membership
puts membership['user'] # just the user name
end
Get All Memberships for a specific Form
curl --request GET 'https://api.fulcrumapp.com/api/v2/memberships.json?form_id=:id' \
--header 'Accept: application/json' \
--header 'X-ApiToken: {token}'
from fulcrum import Fulcrum
fulcrum = Fulcrum('{token}')
memberships = fulcrum.memberships.search(url_params={'form_id':'{id}'})
for membership in memberships['memberships']:
# print(membership) # entire membership
print(membership['user']) # just the user name
const { Client } = require('fulcrum-app');
const client = new Client('{token}');
client.memberships.all({'form_id':'{id}'})
.then((page) => {
page.objects.forEach(membership => {
// console.log(membership); // entire membership
console.log(membership.user); // just the user name
});
})
.catch((error) => {
console.log(error.message);
});
require 'fulcrum'
client = Fulcrum::Client.new('{token}')
memberships = client.memberships.all({'form_id':'{id}'})
for membership in memberships.objects do
# puts membership # entire membership
puts membership['user'] # just the user name
end