- What You Will Learn
- Examples in This Chapter
- 2.1 Exploring the Samples
- 2.2 About You-Your Home Page
- 2.3 Your Keychain and Service Providers
- 2.4 Creating Your First Service: LoanPaymentService
- 2.5 Creating Your First Widget: LoanPaymentWidget
- 2.6 Drafts, Versions, and Timelines
- 2.7 Putting It All Together-Using the WeatherBug API
2.3 Your Keychain and Service Providers
Under your home page (click You at the top of any page) you’ll find your Keychain (click Manage your keychain on your home page, as shown in Figure 2.20). Your Keychain is a list of keys that are associated with select service providers. Service providers have adapters on the zembly site. Adapters are wrapper services deployed in the zembly container that provide access to one or more of the Service Provider’s API calls. Adapters make using your key a simple matter of specifying your Keychain—zembly extracts the appropriate key for the specific adapter seamlessly behind the scenes.
Figure 2.20 Accessing your Keychain
When you access your Keychain, zembly lists all of the service providers that have adapters. For each service provider that you want to use in a service, specify your key. Note that you need to obtain the key on your own first. The process is slightly different for each service provider, but is usually quick. Service providers typically email you a confirmation. Once you have a key, you enter it into your Keychain using the Add key link (as shown in Figure 2.21).
Figure 2.21 Building your Keychain for service providers
Your Keychain is a very important and necessary part of building the web. You want to keep your keys handy, but you also want them private. zembly does this all for you. When other people call your published services, zembly uses your key (from your Keychain), but its value remains private.
You can see a list of adapters available by clicking the service’s Check out the services offered by link. For example, you can see the services offered by Amazon AWS by clicking the link, as shown (circled) in Figure 2.21.
When you follow this link, you’ll see the service adapters currently deployed within the zembly container, as shown in Figure 2.22.
Figure 2.22 Amazon services include Simple Storage Service and E-Commerce Service (ECS)
You can further explore each service adapter by following its link to the detailed documentation page. Here, you’ll find the service’s parameters, error codes, and other pertinent information, which frequently includes external links to the provider’s online documentation. “Putting It All Together—Using the WeatherBug API” on page 45 steps you through the process of building a service using one of zembly’s external service providers.