Membership & Benefits

Reap the rewards of membership in the world's largest organization for stamp collections -- The American Philatelist magazine, library access, insurance, discounts & more

Support the APS

Support the APS through donation, estate considerations, and volunteerism. Grow your knowledge while you expand our reach for the community of collectors

StampStore.org

The APS StampStore help you find the stamps you need and sell the extras you have, all through a trusted, reliable source. Members can enjoy discounts, and selling privileges 

Share Your Email

Share Your Interests

US Classics
US Modern & New Issues
Worldwide
Topical (People, places, etc)

Very simple WebAPI calls

A simple call returning just one value

The folowing example will call a JavaScript function called AskForYear. That simple script will basically call the API controller SimpleDemoRequests and ask it for CurrentYear. The result will be shown in a JavaScript alert. Note that the AskForYear([Module:ModuleId]) will be parsed by the server into AskForYear(622) or something similar, so the JS call will never see the square brackets.
Let's try it: Very simple test - ask for year

A call returning multiple values

This will call a Javascript called AskWebApiForModuleInfos. That simple script will basically call the API SimpleDemoRequests and ask it for GetModuleInfo. The result will be shown in a JavaScript alert.
Let's try it: Very simple test - just get some module infos.

Retrieve a list of something

This will call the JS GetArrayOfDays just to get a list of something back. Try it: Get array of days

Retrieve a list of category-entities from 2sxc

Try it: Get categories

MysticBanner1
Stamp Logo
About the APS - With nearly 32,000 members in more than 110 countries, the APS is the largest, non-profit organization for stamp collectors in the world. Founded in 1886, the APS serves collectors, educators, postal historians, and the general public by providing a wide variety of programs and services. Learn More
Stamp Logo
About the APRL - APRL Digital Collections include digital versions of resources from the APRL collection, as well as born-digital resources we have permission to share and contributed content from other sources. Visit the Library Online

UPCOMING EVENTS

(see all >>)

FROM THE LIBRARY

(visit the library online >>)
  • Library news item with Stamp Library for library web or blog site
  • Library donation news item with Stamp Library to annoucement
  • Library acquistion news item with Stamp Library to article and photos

Engage with us

Join us for StampShow!

Omaha, NE | August 1 - 4, 2019