Warning: Beta software
This API is in beta stage and may be subject to change. Therefore, we do not recommend using this in production.
Interested in this feature? Please reach out to mobility-services-developer@cisco.com
This guide will show you how to become a Number Lookup Provider.
You should have an understanding of how this works before continuing, see How Does Number Lookup Work?.
Prerequisites
- An OAuth 2.0 client
- A client access token
Required Scope
lookup.number:read
Limitations
Limitations for display name
The display name returned must be max 60 characters, and may only contain the following:
- alphanumeric (
a-z
, A-Z
, 0-9
)
(space), -
, _
.
, !
, %
, *
, '
, +
, ~
, `
Characters not matching the above will be stripped.
Code Dependencies
Code
Example Result
Cache
As part of the response, the provider can include a cache TTL.
This is the time in seconds that the display name should be cached in the core.
If not set, a default cache TTL documented in the proto file will be used.
Recommended gRPC Connection Settings
Setting |
Value |
Description |
keep-alive period |
1 minute |
Must be ≥ 1 minute and ≤ 5 minutes |
keep-alive timeout |
10 seconds |
|
permit keep-alive without calls |
true |
|
Keep-Alive
The API Gateway hosting api.{region}.wgtwo.com (see environments for a list of regions) will silently drop connections if they have been idle for 350 seconds (5m 50s).
To avoid this, the provider should send a keep-alive message every minute.
Local Testing
For local testing, you can use our sandbox environment hosted at sandbox.api.shamrock.wgtwo.com
.
In addition to that, we do provide a test application that can be used for testing which may be useful to see how your provider behaves under heavy load.
The test application is hosted at github.com/working-group-two/number-lookup-provider-tester.
By setting up a stream to this application, it will send number lookup requests at the configured rate. It will not do any flow control, but show number of in-flight messages (requests sent - responses received).
Docker
The test application is also available as a pre-built docker image. Usage:
Read More