O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APIs and User Spaces

APIs that can potentially return a lot of data usually employ a user space. A user space is an object (type *USRSPC) that you can use to hold data. As mentioned earlier, a user space can hold up to 16MB. Furthermore, a user space can increase itself, much like a database file increases as you add records to it. Therefore, you don’t have to define it as 16MB to begin with—you create the user space at some size that seems reasonable to your needs. If the API returns more data than will fit, it will attempt to increase the size of the user space to the size it needs. We say “attempt” as the system will still enforce checks such as the authority to the user space object and the storage limit of the current user profile.

Before ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required