{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • General
    • Edge/API Management
    • Developer Portal
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
0
Question by Amarjit Singh · Nov 24, 2015 at 10:00 AM · 1.7k Views apigee edgeapi managementApigee APIapi techniques

How to use a consumer key and consumer secret key to access multiple API's?

Currently, I am using Apigee API with token that is generated by using consumer key and consumer secret key. This access token is used as 'Authorization Bearer' while calling API. I am calling API like following:

curl -H "Authorization: Bearer mytoken" 'http://{my-org}-test.apigee.net/v1/{api}/getData'

Following is my scenario:

There are multiple customers who wants to get data using different API's. I want to use one consumer key and consumer secret key for multiple API's per customer.

Is there any way to achieve my objective using 'Apigee API'?

Any help or hint will be appreciated.

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

2 Answers

· Add your answer
  • Sort: 
avatar image
2
Best Answer

Answer by Anil Sagar @ Google   · Nov 24, 2015 at 10:13 AM

Dear @Amarjit Singh ,

Welcome to Apigee Community :)

Apigee out of the box supports this functionality using concept called API Product. You will bundle multiple APIs, API resources into a product called API Product. API keys are always associated with Apps / API Products than APIs itself.

An API product is a collection of API resources (URIs) combined with a service plan and presented to developers as a bundle.

You can find more about API Products here. See more about creating API products here. Keep us posted if you have any queries.

Let me try to explain this with an example,

Let's say I am running a Telco business & I have many services to offer. I would like to open up my business using APIs so that I can reach out to large developer base as well as quickly expand my business in today's integrations world like onboarding partners, customers, developers etc into my business.

I have following services that i would like to expose , let's say

  • SMS Services
  • Location Services

I will create following apis,

SMS :

  • Send SMS : POST : http://mytelcom.com/sms
  • Get SMS Details : GET : http://mytelcom.com/sms/{SMSID}

Location Services :

  • Update Location : POST : http://mytelecom.com/location/{MOBILENUMBER}
  • Get Location : GET : http://mytelecom.com/location/{MOBILENUMBER}

Let's say, now, i would like to provide access to all APIs to my internal team, i will create an API Product called "Unlimited API" & i will add all above APIs to the API Product list.

Let's say, I would like to provide only READ access to my services to my partner, i can create a product called, "PARTNER API" and add only GET SMS Details API, GET Location API Details API to the api product.

I will create a developer app for my internal team called "Internal App" & choose "Unlimited API" product while creating APP. When you are done with creating an APP, you will be provided with Consumer Key & Secret Key using which you can access the APIs that has been configured in the product. Apigee Edge Platform handles these restrictions out of the box.

Similar to above, Either you will create Apps for your partner / restrict your partner to certain API products while creating developer apps which in turn restricts to certain API proxies.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
3

Answer by Sonali · Nov 24, 2015 at 10:17 AM

As I understand you are exposing multiple API's through Apigee. So whenever customer would like to access any of these API's, he will register an app on your org using Apigee Developer Portal. Separate consumer key and secret will be generated for each developer app. While creating an app customer will register to those products to which he wants to access assigned API's.

To understand key app and product refer this.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 5 attachments (including images) can be used with a maximum of 5.0 MB each and 25.0 MB total.

Follow this Question

Answers Answers and Comments

36 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can Apigee connect to an IDP server to get the tokens and the same IDP used for 2 different databases? 2 Answers

How to deploy multiple proxy End points in one proxy? 1 Answer

How do you know what changes are made to a proxy revision? 2 Answers

Error while using maven deploy plugin for deployment of api proxy. 1 Answer

Requested output structure for the APIs - create a debug session, delete a debug session and get data for a session 2 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • General
  • Edge/API Management
  • Developer Portal
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges