WO2011060689A1 - 一种应用于微件Widget的代理服务的方法及服务器 - Google Patents

一种应用于微件Widget的代理服务的方法及服务器 Download PDF

Info

Publication number
WO2011060689A1
WO2011060689A1 PCT/CN2010/078438 CN2010078438W WO2011060689A1 WO 2011060689 A1 WO2011060689 A1 WO 2011060689A1 CN 2010078438 W CN2010078438 W CN 2010078438W WO 2011060689 A1 WO2011060689 A1 WO 2011060689A1
Authority
WO
WIPO (PCT)
Prior art keywords
api
widget
user
service
service provider
Prior art date
Application number
PCT/CN2010/078438
Other languages
English (en)
French (fr)
Inventor
丘志宏
符海芳
张�杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011060689A1 publication Critical patent/WO2011060689A1/zh
Priority to US13/338,375 priority Critical patent/US8832250B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and server for proxy services applied to widget Widgets. Background technique
  • Widgets are small client-side Web applications, often referred to as widgets or widgets. They can display and update local or remote data, usually packaged as a file that is downloaded and installed by the client device.
  • Widgets The emergence of Widgets has dramatically changed the form of business in telecommunications networks.
  • the types of services in the traditional telecommunication network are limited. Generally, the operator provides a separate service subnet for each service, which includes a highly targeted charging network element.
  • the characteristics of the services in the traditional telecommunication network are few types, each type of business has a long operating cycle, and the development and operation of the business are the responsibility of the operator. The business development and operation are subject to rigorous research and design.
  • Widget mode the final business in the form of Widgets can be developed by third parties, especially freelance developers.
  • the telecommunications capabilities and content platforms provided by the operators are no longer provided to the users as final products, but are provided to developers via API (Application Programming Interface), which developers call in the Widget service.
  • API Application Programming Interface
  • service providers providing services in the form of APIs in the Internet and telecom operation networks.
  • the Programmableweb website has more than 1000 OpenAPIs managed so far, and there are 57 types.
  • each user may download multiple Widgets, and each Widget may use multiple API services, and each API service is provided by a different service provider.
  • each API service is provided by a different service provider.
  • users need to communicate with many API service providers separately, and when they need to settle, these many API service providers need to enter separately.
  • the collection of the charging information is performed separately according to the collected charging information. This charging mode not only does not meet the user's habits, but also increases the complicated operation of the user and the API service provider. Summary of the invention
  • Embodiments of the present invention provide a method and a server for applying a proxy service to a Widget.
  • a method for proxy service applied to a Widget comprising:
  • a server is further provided, which is applied to a proxy service of a Widget, where the server is respectively connected to a plurality of user terminals and a plurality of API service providers, including: a service proxy unit and a billing unit ;
  • the service proxy unit is configured to receive a service request of a Widget usage API initiated by a user terminal, and forward the service request to an API service provider, and forward the response of the API service provider to the service request to the User terminal
  • the charging unit is configured to collect the service after the service proxy unit receives the service request
  • the Widget uses the charging information generated by the API service, and records the collected charging information, where the charging information is used to perform unified charging on the API service used by the Widget together with the charging policy registered by the Widget.
  • FIG. 1 is a general flowchart of a method for applying a proxy service to a Widget according to an embodiment of the present invention
  • FIG. 1A is a specific flowchart of a method for applying a proxy service to a Widget according to an embodiment of the present invention
  • a specific flowchart of step S114 in FIG. 1A is a specific flowchart of step S114 in FIG. 1A;
  • step S116 in FIG. 1 is a flowchart of an implementation of step S116 in FIG. 1 according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a specific implementation of FIG. 3 according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a specific embodiment of step S118 in FIG. 1A according to an embodiment of the present invention
  • FIG. 6 is a diagram of an application environment of a server according to an embodiment of the present invention
  • FIG. 7 is a structural diagram of a server according to an embodiment of the present invention. detailed description
  • a plurality of terminals on which the Widget is installed may be in communication connection with a server, and the server is in communication connection with a plurality of API service providers, and is in communication with the operator, wherein the API service provider is not connected to the operator.
  • the user when the user is using the Widget, if the service of the API service provider or the API service provider needs to be used, the user initiates a service request to the server by installing the Widget terminal, and the request is redirected by the server. Corresponding API service provider, and returning the response of the API service provider to the request to the Widget terminal.
  • the fee generated by the various charging APIs is used, and the user first performs unified proxy settlement with the server.
  • the charge API usage fee generated by the server forwarding service request is settled between the server and the API service provider.
  • the Widget needs to be registered on the server, or the administrator of the server registers the Widget, where The registered information includes the Widget ID, the Widget billing policy, and the charging API service used by the Widget.
  • the Widget uses the income
  • the fee API service includes the API ID used by the Widget.
  • the user also needs to register on the server to ensure that the user has the right to use.
  • the proxy user in the process of unified charging, is forwarded to forward the service request using the API service, and the fee for using the API involved is periodically triggered to perform unified charging settlement.
  • the proxy user since the user initiates the service request and when the server returns the response from the API service provider, this is the user is using the API, which will incur the cost of using the API.
  • relevant accounting information is collected.
  • the two processes include unified settlement with the user and unified settlement with the API service provider.
  • FIG. 1 is a general flowchart of a method for applying a proxy service to a Widget according to an embodiment of the present invention.
  • FIG. 1 is a general flowchart of a method for applying a proxy service to a Widget according to an embodiment of the present invention.
  • Step S10 Receive a service request that the user terminal initiates a Widget using the API.
  • Step S20 Forward the service request to an API service provider, and forward the response of the API service provider to the service request to the user terminal;
  • step S30 the charging information generated by the Widget using the API service is collected, and the collected charging information is recorded, where the charging information is used for the API service used by the Widget together with the charging policy registered by the Widget. Perform unified billing.
  • the server unified agent collects the charging information generated when the Widget uses the API service, so that the API service provider does not need to separately collect the charging information for each API service.
  • the server forwards the request of the API service to the API service provider through the server, and forwards the response of the API service provider to the service request to the user, so that the user does not need to communicate with multiple API service providers separately. , reducing the user's complicated operation and bringing a better user experience.
  • the collected charging information may also be utilized,
  • the API service used by the Widget for unified billing may further include: performing unified charging and settlement on the API service used by the Widget according to the collected charging information and the charging policy registered by the Widget.
  • the method may further include: performing settlement on the API service provider according to the collected billing information and an API settlement manner registered by the API service provider. It should be noted that the foregoing steps of performing billing settlement for the API service and the API service provider used by the Widget are not necessary steps, and the server may only complete the request forwarding and collection of billing information, and use the billing information to calculate Fee settlement can be an additional feature of the server.
  • FIG. 1A is a specific flowchart of a method for applying a proxy service to a Widget according to an embodiment of the present invention.
  • the user of the user terminal initiates a service request of the Widget using the API.
  • the service request includes authentication information, where the authentication information includes a user ID, a Widget ID, and an ID of an API used by the Widget.
  • the Widget ID is the ID of the Widget used by the user, and the API ID is required to use the API when the user uses the Widget.
  • the authentication information may include the IP information of the user.
  • the user terminal can install a Widget or multiple Widgets.
  • Step S102 The server receives a service request initiated by the user, and authenticates the service request.
  • the process of authenticating may include the following steps:
  • Step A According to the user ID in the service request, determine that the user is a registered user of the server, and has the right to use the server. In this embodiment, it is possible to query whether the user ID exists in the user registered in the server.
  • Step B According to the Widget ID in the service request, it is determined that the Widget used by the user has been registered in the server. In this embodiment, it is possible to query whether the Widget ID exists in the Widget ID registered in the server.
  • Step C Compare the Widget ID and the API ID in the service request with the registration information of the Widget, and determine that the Widget in the service request has the right to use the API. Since the Widget ID and the charging API service information used by the Widget are included in the registration information of the Widget, the charging API service used by the Widget includes the ID of the API used by the Widget, and therefore, the Widget ID and the registration information in the service request. The Widget ID in the comparison is compared, and the API ID in the service request is compared with the API ID in the charging API service used by the Widget. If they are all the same, it can be determined that the Widget in the service request has the right to use the API. .
  • step S104 is performed to determine whether the charging information collection needs to be triggered.
  • the collecting may be performed according to the charging policy of the Widget.
  • the charging policy of the Widget may include convergent charging, unified charging, charging by usage, charging by time, charging by monthly, and free service.
  • step S108 is performed. If the charging policy of the current Widget is condensed charging, unified charging, charging by time, or charging according to the usage count, the charging information collection needs to be triggered, and then step S106 is performed.
  • Step S106 trigger collection of charging information.
  • step S108 and step S114 are started.
  • Step S108 Convert the service request of the user.
  • the manner of conversion is: removing the authentication information in the original user's service request, and adding the authentication information agreed by the server and the API service provider.
  • the first type authentication by username and password: the user name and password registered by the server at the API service provider are added to the service request;
  • the second type authentication by IP address: The original user's IP information is removed from the service request, and the server's IP information is added.
  • Step S110 Forward the converted service request to the corresponding API service provider.
  • the API service provider receives the service request, it returns a response to the service request to the server.
  • step S114 may also be performed.
  • Step S112 forwarding the response of the service request returned by the API service provider to the user.
  • the response is information processed by the API service provider for the service request. For example, if the user sends a service request for a weather forecast, the API service provider returns the result of the weather forecast to the user.
  • Step S114 Collect charging information generated by the Widget using the API service, and record the collected charging information.
  • the charging information may include a user ID, a Widget ID, and an API ID used by the Widget.
  • the service start and end times may also be included. The number of times the API service provider event stream is retrieved and the number of times the response to the service request is forwarded to the user event stream.
  • Step S116 Perform billing settlement on the API service used by the Widget according to the collected charging information and the charging policy registered by the Widget.
  • the fee generated by the API service used by the user when using the Widget is settled, thereby avoiding the need for the user to separately perform to each API service provider. In the case of settlement, the complicated operation of the user is reduced.
  • the method may further include: Step S118, performing settlement with the API service provider.
  • the server performs proxy settlement on the fee generated by the API used by the user when using the Widget according to the collected charging information and the registered charging policy, and performs proxy settlement with the API service provider. Therefore, the user needs to separately settle to each API service provider, which reduces the complicated operation of the user and brings a better user experience.
  • FIG. 2 is a specific flowchart of step S114 in FIG. 1A according to an embodiment of the present invention.
  • step S200 the user ID, the Widget ID, and the ID of the API used by the Widget are obtained.
  • Step S202 After the server forwards the response of the API service provider to the service request to the user, start recording the service start time.
  • the API service provider forwards the response to the service request to the user, it can be understood that the API service provider starts to provide the service.
  • the step S112 in Fig. 1 it can also be understood that, after the step S112 in Fig. 1 is performed, the step S202 in Fig. 2 is started, that is, the recording service start time is started.
  • Step S204 determining whether to charge according to the service duration.
  • step S210 if it is determined that the charging is based on the service duration, step S210 is performed, that is, the service end time is recorded.
  • the recording service end time is the time at which the API service provider ends the service.
  • step S206 is performed, that is, the number of service completions is recorded.
  • the number of times the service request is forwarded to the API service provider event stream and the number of times the response to the service request is forwarded to the user event stream is included.
  • the step S110 can be recorded.
  • the number of times the service request was forwarded to the API service provider event stream.
  • the number of times the response to forward the service request to the user event stream in step S112 can be recorded.
  • the number of times of use may be charged.
  • the number of times the service request is forwarded to the API service provider event flow and the response to forward the service request to the user are required.
  • the number of event streams is used as billing information.
  • a service can also be understood as a service that is completed once per request; if the two are not equal, then some services are not provided.
  • the information acquired and recorded in the above steps can be used as the original charging information for generating the bill, that is, the collected billing information.
  • FIG. 3 is a flowchart of an implementation of step S116 in FIG. 1A according to an embodiment of the present invention.
  • step S300 user bill settlement is triggered periodically or periodically.
  • Step S302 Query all the original billing information of the user in a certain period according to the user ID.
  • Step S304 classifying the original charging information of the user according to the Widget ID.
  • each type of widget allocates billing information corresponding to the widget.
  • Step S306 querying the charging policy registered by the widget according to the Widget ID.
  • Step S308 performing charging settlement on the API service used by the Widget according to the charging policy.
  • the method may further include:
  • Step S310 batch processing.
  • the information after the billing and settlement of the API service used by the Widget is subjected to the price processing.
  • Step S312 outputting a consolidated bill.
  • the bill here may include the user ID, the widget ID used, the API ID used, and the amount of the generated fee.
  • the monthly server can also output the user's bill to the user according to the user's query bill request, so that the user can see the amount of money consumed at a glance.
  • the server may further deduct the user according to the information after the billing and settlement.
  • the amount of the fee generated by the Widget there are two implementations:
  • the server may deduct the amount of the fee generated by the user using the widget from the user's fee account;
  • the information after the billing settlement is sent to the operator to notify the operator to deduct the amount of the user's account in the operator account
  • the post-settlement information includes the user ID, the server ID, and The amount of the amount; and receiving the operator to deduct the amount of the user's fee in the operator account.
  • the server may deduct the amount of the fee generated by the user using the widget as the revenue amount of the server.
  • FIG. 4 is a flowchart of a specific implementation of FIG. 3 according to an embodiment of the present invention.
  • step S400 user bill settlement is triggered periodically or periodically.
  • Step S402 Query all the original billing information of the user in a certain period according to the user ID.
  • Step S404 classifying the original charging information of the user according to the Widget ID.
  • each type of widget allocates billing information corresponding to the widget.
  • Step S406 Query the charging policy registered by the widget according to the Widget ID.
  • the charging policy is described in terms of convergent charging, unified charging, and usage-based charging. In the embodiment of the present invention, it is not limited to the above three charging policies.
  • step S408 is performed; if the charging policy of the Widget is queried according to the Widget ID, the step S414 is performed; if the Widget is queried according to the Widget ID
  • step S418 is performed. The description will be separately described below.
  • step S408 the API ID involved in each piece of original charging information and the charging policy of the API are queried.
  • the function of the convergent charging means that the server outputs a consolidated bill to the user, that is, a bill capable of outputting the charging status of each widget to the user.
  • step S410 the usage fee of each API is separately calculated.
  • step S412 the usage fees of the APIs are summed to obtain a consolidated billing statement.
  • the relevant discount calculation can be performed.
  • unified charging refers to the use of Widgets.
  • the charging policy after charging by Widget, will not be charged for the use of the API service due to the use of the Widget.
  • This charging method enables the user to obtain the service according to the Widget, and pays according to the Widget at the same time, which can avoid the bad experience brought by the different service and billing objects.
  • the Widget's monthly billing, annual billing, and usage time billing policies may be used. It may be understood that the Widget is ordered, that is, there is an order relationship in the unified billing strategy of the Widget.
  • Step S414 The Widget is charged according to an order relationship in the unified charging policy of the Widget.
  • the billing is performed in the order relationship, the use of the API service generated by using the widget will not be charged.
  • the charging policy is to charge by usage
  • the session id is included in the service request sent during each use, that is, the dialog in each use includes the same session id, refer to the following two examples. To illustrate, it can be implemented in two ways. One is to send a separate message when the Widget is opened, and the other is to send a separate message when the Widget is closed:
  • the number of times may be the number of times of the event stream in steps S206 and S208 in Fig. 2.
  • Step S420 outputting the bill of the Widget after being charged according to the usage count.
  • step S422 may also be performed.
  • Step S422 batch processing.
  • Step S424 outputting a consolidated bill.
  • the user can query the expense bill generated by the use of the API service as needed.
  • FIG. 5 is a flowchart of a specific embodiment of step S118 in FIG. 1A according to an embodiment of the present invention.
  • the authentication method and the settlement method between the server and the API service provider can be determined after enterprise-level negotiation between the two.
  • the settlement information involved may be collected by the server, that is, the implementation process in FIG. 2, or may be obtained by an API service provider, that is, according to the charging information provided by the API service provider and the API.
  • the API settlement mode of the service provider registration is settled by the API service provider, and the charging information provided by the API service provider includes an API ID, a server ID, and a time of completing the service using the API or using the API.
  • the description is made by taking the settlement information as collected by the server as an example.
  • Step S500 triggering the billing of the server and the API service provider periodically or periodically.
  • Step S502 querying the original charging information of the API according to the API ID.
  • Step S504 Query the API settlement mode registered by the API service provider according to the API ID, and perform settlement according to the settlement manner.
  • Step S506 accumulating and collecting the settlement information of the API. That is, the accumulated bill of the API after the accumulation is obtained, which can be understood as the total bill of the API of the API service provider.
  • the amount of the fee of the API service provider is deducted from the income in the server according to the number of the fee amount in the settlement information, as
  • the revenue of the API service provider is either the expense of the server, that is, the amount of the fee of the API service provider is obtained from the deducted amount of the fee generated by the user using the Widget.
  • the server can allow developers to participate in the operation, and can distribute a certain percentage of the amount from the settlement results after the income and expenses to the developer.
  • the corresponding fee amount may be distributed from the remaining fee amount to the developer of the widget according to the usage rate or market value of the widget or the user's high degree of evaluation or popularity.
  • this developer can be the operator itself or a separate person.
  • the technical solution provided in this embodiment collects the charging information generated by the Widget using the API service through the server unified agent, and does not require the API service provider to separately collect the charging information, thereby reducing the complicated operation of the API service provider, and
  • the server forwards the request of the user using the API service, the unified proxy to the API service provider, and forwards the response of the API service provider to the service request to the user, so that the user does not need to communicate with multiple API service providers separately. Reduce the user's complicated operation and bring a better user experience;
  • the server collects the collected charging information and the charging policy registered by the Widget, and settles the fee generated by the API service used by the user when using the Widget, thereby avoiding the situation that the user needs to separately settle to each API service provider. It reduces the complicated operation of the user, brings a better user experience, and does not require the API service provider to separately perform the respective billing settlement, which reduces the complicated operation of the API service provider.
  • the server can also output a consolidated bill for the user, so that the user can clearly know the usage charge of each widget and API service, which can bring a better user experience to the user.
  • FIG. 6 is a diagram of an application environment of a server according to an embodiment of the present invention.
  • the user terminal 6 is communicatively connected to the API service provider 8 via the server 7, and the server is communicatively coupled to the operator 9.
  • the user terminal 6 includes a first user terminal 61, a second user terminal 62, an Nth user terminal 6N, and the API service provider 8 includes a first API service provider.
  • the second API service provider 82 is a Nth API service provider 8N, wherein each user terminal can be installed with multiple Widgets.
  • the server 7 is configured to receive a service request initiated by the user terminal 6, and perform authentication and conversion on the service request, and forward the converted service request.
  • the corresponding API service provider 8 is forwarded and the response to the service request returned by the API service provider 8 is forwarded to the user terminal 6.
  • the server 7 is further configured to settle the API service used by the user terminal 6 according to the collected charging information and the registered charging policy, and then perform settlement with the API service provider 8.
  • server 7 and API service provider 8 may be different service network elements provided by the same actual service provider.
  • the server 7 may include all the functions of the proxy service of the Widget described in the corresponding embodiment of FIG. 4, and may also be similar to the corresponding embodiment of FIG. 1, and does not include "for the API service provider. The function of performing unified billing settlement.
  • the server 7 and the actual service provider of the API service provider 8 may be the same.
  • the API server may not include information such as the user and the application of the user terminal, and the information of the user and the application of the user terminal may be provided by the server 7. Operation.
  • the server 7 may include features as described in the prior art in addition to the various functions mentioned in the previous embodiments, that is, the final service involved in the server 7 may be developed by a third party, especially a free developer, by development.
  • the user is automatically uploaded to the server 7 after development. That is, in this embodiment, the server 7 not only provides a proxy service for the user terminal, but also provides an application upload service for a free developer.
  • FIG. 7 is a structural diagram of a server according to an embodiment of the present invention.
  • the server 7 includes a Widget registration management unit 71, an API registration management unit 72, a service proxy unit 73, a billing unit 74, a user fee management unit 75, a server fee management unit 76, and an API service provider fee management.
  • Unit 77 the service proxy unit 73 includes a service request authentication subunit 731, a service request conversion subunit 732, a service request forwarding subunit 733, a service response receiving subunit 734, and a service response forwarding subunit 735; 74 includes an account management sub-unit 741, a billing information collection sub-unit 742, an API service provider settlement sub-unit 742, a bill generation sub-unit 744, and a user settlement sub-unit 745.
  • the Widget registration management unit 71 is configured to receive the registration information of the Widget, that is, to manage the registered Widget on each user terminal, and also understand that the user needs to use the Widget-installed user terminal.
  • the Widget is registered with the server, and the information to be registered includes the Widget ID, the Widget charging policy, and the charging API service used by the Widget.
  • the charging API service used by the Widget includes the ID of the API used by the Widget.
  • the API registration management unit 72 is configured to receive registration information of the API service provider, where the registration information includes an settlement manner of the API, that is, an API that the management API service provider registers with the server.
  • the service request authentication sub-unit 731 is configured to receive a service request initiated by the user terminal 6, and authenticate the service request.
  • the service request includes authentication information, where the authentication information includes a user ID, a Widget ID, and an API ID.
  • the Widget ID is an ID of a Widget used by the user
  • the API ID is an ID that the user needs to request to use the API.
  • the authentication information may include the IP information of the user.
  • the service request authentication sub-unit 731 is further configured to determine, according to the user ID in the service request, that the user is a server registered user, and has the use right of the server. In this embodiment, it is possible to query whether the user ID exists in the user registered in the server. Thereafter, the service request authentication sub-unit 731 is further configured to determine, according to the Widget ID in the service request, that the Widget used by the user has been registered with the server. In this embodiment, it is possible to query whether the Widget ID exists in the Widget registered in the server. Then, the service request authentication sub-unit 731 is further configured to compare the Widget ID and the API ID in the service request with the registration information of the Widget, and determine that the Widget in the service request has the right to use the API.
  • the service request conversion sub-unit 732 is configured to convert the service request of the user after the service request authentication sub-unit 731 successfully authenticates.
  • the manner of the conversion is: removing the authentication information in the original user's service request, and adding the authentication information agreed by the server and the API service provider.
  • the first type authentication by username and password: the user name and password registered by the server at the API service provider are added to the service request;
  • the second type authentication by IP address: The original user's IP information is removed from the service request, and the server's IP information is added.
  • the service request forwarding sub-unit 733 is configured to forward the service request converted by the service request conversion sub-unit 732 to the corresponding API service provider.
  • the API service provider receives the After the service request, a response to the service request is returned to the server.
  • the service response receiving sub-unit 734 is also operative to receive an response from the API service provider for the service request.
  • the service response forwarding sub-unit 735 is also operative to forward the response received by the service response receiving sub-unit 734 to the user terminal.
  • the response is information processed by the API service provider for the service request. For example, if the user sends a service request for a weather forecast, the API service provider returns the result of the weather forecast to the user terminal.
  • the charging information collection sub-unit 742 in the charging unit 741 is configured to determine whether the charging information collection needs to be triggered, and when it is determined that the charging needs to be triggered.
  • billing information is collected and recorded.
  • the billing information may include a user ID, a Widget ID, and an API ID.
  • the service start and end times may also be included, and the number of service completions.
  • the collected charging information may be used as original charging information for generating a bill. For details about the specific collection and billing information, refer to FIG. 2, and the description is not repeated here.
  • the account management sub-unit 741 is used to manage the user account registered on the server.
  • the user settlement sub-unit 745 is configured to generate the bill of the user terminal according to the charging information collected by the charging information collection sub-unit 742 and the charging policy in the Widget registration management unit 71, that is, the API used by the user terminal.
  • the service is settled.
  • the user settlement sub-unit 745 is further configured to query all the original charging information of the user in a certain period according to the user ID, classify the original charging information of the user according to the Widget ID, and query the information according to the Widget ID.
  • the charging policy registered by the Widget, and the charging related to the Widget is completed according to the charging policy.
  • the bill generation sub-unit 744 is used to output a bill based on the settlement result with the user settlement sub-unit 745.
  • the bill generation sub-unit 744 is configured to output the bill of the user to the user according to the user's query bill request.
  • the server fee management unit 76 is configured to use the information after the billing settlement with the user settlement subunit 745 from the user fee management unit 75.
  • the amount of the fee generated by the user using the Widget is deducted, and the post-settled information includes a user ID and a number of amounts, wherein the user fee management unit 75 is configured to manage the amount of the user's fee.
  • the deduction user may use the Widget to generate The amount of the fee is the revenue of the server.
  • the user settlement sub-unit 745 may further send the information after the billing settlement to the operator, to notify the operator to deduct the amount of the user's fee in the operator account, and the settlement
  • the subsequent information includes a user ID, a server ID, and a number of amounts; the server fee management unit 76 receives the amount of the fee that the operator deducts from the user in the operator account.
  • the amount of the fee generated by the user using the widget may be deducted as the revenue of the server.
  • the API service provider settlement sub-unit 743 is configured to settle the API according to the billing information collected by the billing information collection sub-unit 742 and the settlement method of the API registration.
  • the method is: querying the original billing information of the API according to the API ID, and querying the billing mode registered by the API according to the API ID, and performing settlement according to the billing method.
  • the API service provider settlement sub-unit 743 is configured to further access the API service provider according to the charging information provided by the API service provider and the API settlement mode registered by the API service provider.
  • the billing information provided by the API service provider includes an API ID, a server ID, and the number of times the service is completed using the API or the start and end time of using the API service.
  • the API service provider fee management unit 77 is configured to calculate the fee amount after the API service provider is settled according to the API service provider settlement sub-unit 743.
  • the amount of the fee of the API service provider is obtained.
  • the API service provider fee management unit 77 is further configured to obtain a fee amount of the API service provider, and distribute the obtained fee amount of the API service provider to the API service provider.
  • the server can let the developer participate in the operation, and can distribute a certain percentage of the amount from the settlement result after the income and expenses to the developer.
  • the corresponding fee can be distributed from the remaining fee amount according to the usage rate or market value of the Widget or the user's high evaluation degree or popularity.
  • the server fee management unit 76 is further configured to distribute the corresponding fee amount from the remaining fee amount according to the usage rate or market value of the Widget or the high evaluation degree or popularity of the user, and the like. The developer of the Widget.
  • the bill generation sub-unit 744 is also used to accumulate billing information for the API. That is, the accumulated bill of the API is obtained, which can be understood as the total bill of the API.
  • the technical solution provided in this embodiment collects the charging information generated by the Widget using the API service through the server unified agent, and does not require the API service provider to separately collect the charging information, thereby reducing the complicated operation of the API service provider, and
  • the server forwards the request of the user using the API service, the unified proxy to the API service provider, and forwards the response of the API service provider to the service request to the user, so that the user does not need to communicate with multiple API service providers separately. Reduce the user's complicated operation and bring a better user experience;
  • the server collects the collected charging information and the charging policy registered by the Widget, and settles the fee generated by the API service used by the user when using the Widget, thereby avoiding the situation that the user needs to separately settle to each API service provider. It reduces the complicated operation of the user, brings a better user experience, and does not require the API service provider to separately perform the respective billing settlement, which reduces the complicated operation of the API service provider.
  • the server can also output a consolidated bill for the user, so that the user can clearly know the usage charge of each widget and API service, which can bring a better user experience to the user.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

一种应用于微件 Widget的代理服务的方法 SJIL务器 本申请要求于 2009 年 11 月 18 日提交中国专利局、 申请号为 200910109675.9、发明名称为"一种应用于 Widget的代理服务的方法及服务器" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信领域, 特别是涉及一种应用于微件 Widget的代理服务的 方法及服务器。 背景技术
Widget是一种客户端的小 Web程序, 通常可以称之微技或微件, 它可以显 示并更新本地或远程数据,通常被打包成一个文件被客户端设备下载并安装使 用。
Widget的出现极大的改变了电信网络中的业务的形式。在传统的电信网中 的服务种类有限, 一般是运营商为每种服务提供单独的业务子网, 其中包含有 针对性很强的计费网元。传统电信网络中的业务的特点是种类少,每类业务运 营周期长, 业务的开发和运营都由运营商负责, 业务开发和运营都经过严格的 调研和设计。
而在 Widget模式下, Widget形式的最终业务可由第三方,特别是自由开发 者开发。运营商提供的电信能力和内容平台不再作为最终产品提供给用户, 而 是通过 API ( Application Programming Interface, 应用程序编程接口)的形式提 供给开发者调用, 开发者在 Widget业务中调用这些 API的能力创造出各式各样 的新型业务。 当前, 在互联网和电信运营网络中, 以 API的形式提供服务的服 务提供商越来越多, 如 Programmableweb网站上到目前为止管理的 OpenAPI超 过 1000个, 种类有 57种之多。
发明人在实现本发明的过程中, 发现现有技术至少存在以下缺点: 每个 用户可能下载多个 Widget, 每个 Widget又可能使用到多个 API服务, 各个 API 服务由不同的服务提供商提供, 这样用户需要和众多的 API服务提供商进行分 别通信交互, 并且当需要进行结算时, 这些众多的 API服务提供商需要分别进 行收费信息的收集,再根据收集的计费信息进行分别计费结算, 这种收费模式 不仅不符合用户的习惯, 而且增加了用户和 API服务提供商的繁杂操作量。 发明内容
本发明实施例提供一种应用于 Widget的代理服务的方法及服务器。
根据本发明的一实施例, 提供一种应用于 Widget的代理服务的方法, 所 述方法包括:
接收用户终端发起的 Widget使用 API的服务请求;
将所述服务请求转发至 API服务提供商, 并将所述 API服务提供商对所 述服务请求的响应转发于所述用户终端;
收集所述 Widget使用 API服务产生的计费信息, 记录所述收集的计费信 息,所述计费信息用于与所述 Widget注册的计费策略一起对所述 Widget使用 的 API服务进行统一计费。
根据本发明的另一实施例, 还提供一种服务器, 应用于 Widget的代理服 务, 所述服务器分别与多个用户终端和多个 API服务提供商通信连接, 包括: 服务代理单元及计费单元;
所述服务代理单元用于接收用户终端发起的 Widget使用 API的服务请求, 并将所述服务请求转发至 API服务提供商, 将所述 API服务提供商对所述服 务请求的响应转发于所述用户终端;
所述计费单元用于当所述服务代理单元接收所述服务请求后, 收集所述
Widget使用 API服务产生的计费信息, 并记录所述收集的计费信息, 所述计 费信息用于与所述 Widget注册的计费策略一起对所述 Widget使用的 API服务 进行统一计费。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付 出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例的应用于 Widget的代理服务的方法的总体流程图; 图 1A为本发明实施例的应用于 Widget的代理服务的方法的具体流程图; 图 2为本发明实施例的图 1A中步骤 S114的具体流程图;
图 3为本发明实施例的图 1中步骤 S116的实施流程图;
图 4为本发明实施例的图 3的具体实施流程图;
图 5为本发明实施例的图 1A中的步骤 S118的具体实施例流程图; 图 6为本发明实施例的服务器的应用环境图;
图 7为本发明实施例的服务器的结构图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
在本实施例中, 多个安装有 Widget的终端可以与一个服务器通信连接, 该服务器与多个 API服务提供商通信连接, 并与运营商通信连接, 其中, API 服务提供商与运营商没有连接。 在本实施例中, 当用户在使用 Widget时, 若 需要使用某 API服务供应商或 API服务提供商提拱的服务时, 用户通过安装 Widget 的终端向服务器发起服务请求, 通过服务器将该请求转向对应的 API 服务提供商, 并回传 API服务提供商针对该请求的响应至该 Widget终端。
在本实施例中,用户在使用 Widget时,使用各种收费 API所产生的费用, 先由用户与该服务器进行统一代理结算。 由服务器转发服务请求产生的收费 API使用费用, 由该服务器与 API服务提供商之间进行结算。
在本实施例中, 当开发者完成设计 Widget后, 将该 Widget上传至服务器 供用户下载时, 需要将该 Widget在服务器上进行注册, 或者是由服务器的管 理员将该 Widget进行注册, 其中需要注册的信息包括该 Widget ID, Widget 计费策略, 及该 Widget所用到的收费 API服务。 当然, 该 Widget所用到的收 费 API服务包括该 Widget使用的 API ID。 同时, 该用户也需要在该服务器上 进行注册, 以确保该用户拥有使用的权限。
当然, 各个 API服务提供商也需要在该服务器进行注册。
在本实施例中,在统一收费的过程中, 包括代理用户转发使用 API服务的 服务请求,和定期触发对所涉及的使用 API的费用进行统一收费结算。在本实 施例中,由于用户发起了服务请求,并当服务器回传 API服务提供商的响应后, 这也就是用户正在使用该 API, 这会产生使用 API的费用。在服务器代理转发 用户的服务请求的过程中, 会对收集相关的计费信息。 在本实施例中, 在定期 触发对所涉及的使用 API的费用进行统一收费结算的过程中,包括与用户进行 统一结算和与 API服务提供商统一结算两个过程。
在本实施例中, 图 1为本发明实施例的应用于 Widget的代理服务的方法 的总体流程图。 在本实施例中,
步骤 S10, 接收用户终端发起 Widget使用 API的服务请求;
步骤 S20,将所述服务请求转发至 API服务提供商, 并将所述 API服务提 供商对所述服务请求的响应转发于所述用户终端;
步骤 S30, 收集所述 Widget使用 API服务产生的计费信息, 记录所述收 集的计费信息, 所述计费信息用于与所述 Widget注册的计费策略一起对所述 Widget使用的 API服务进行统一计费。
在本实施例中, 服务器统一代理对 Widget使用 API服务时所产生的计费 信息进行收集, 就可以使 API服务提供商无须再针对每个 API服务进行计费 信息的分别收集。 通过服务器将用户使用 API服务的请求, 统一代理转发至 API服务提供商, 并将 API服务提供商对服务请求的响应转发至用户,从而就 不需要用户与多个 API服务提供商分别进行通信交互, 减少了用户繁杂的操 作, 带来了更好的用户体验。
在本实施例中, 当收集完计费信息, 还可以利用所收集的计费信息, 对
Widget使用的 API服务进行统一计费。 在本实施例中, 还可以包括步骤: 根据记录的所述收集的计费信息和 Widget 注册的计费策略对所述 Widget 使用的 API服务进行统一计费结算。 当然, 如果需要对 API服务提供商进行统一计费结算, 还可以包括步骤: 根据所述收集的计费信息和所述 API服务提供商注册的 API结算方式对 所述 API服务提供商进行结算。 需要说明的, 以上的对 Widget使用的 API服 务和 API服务提供商分别进行计费结算的步骤不是必需的步骤,服务器可以只 需完成请求的转发和计费信息的收集,利用计费信息进行计费结算可以作为服 务器的一个附加的功能。
图 1A为本发明实施例的应用于 Widget的代理服务的方法的具体流程图。 在本实施例中, 步骤 S100, 用户终端的用户发起 Widget使用 API的服务 请求。 在本实施例中, 该服务请求中包括鉴权信息, 该鉴权信息包括 user ID, Widget ID, 及该 Widget使用的 API的 ID。 在本实施例中, 该 Widget ID为用 户使用的 Widget的 ID, API ID为用户使用 Widget时, 需要请求使用 API的
ID。 当然, 该鉴权信息可以包括该用户的 IP信息。 当然, 该用户终端可以安 装一个 Widget或多个 Widget。
步骤 S102, 服务器接收用户发起的服务请求, 并对该服务请求进行鉴权。 在本实施例中, 鉴权的过程可以包括以下步骤:
步骤 A: 根据服务请求中的 user ID确定该用户为服务器注册用户, 拥有 服务器的使用权限。在本实施例中,可以查询服务器中注册的用户中是否存在 该 user ID。
步骤 B:根据服务请求中的 Widget ID确定该用户使用的 Widget已经在服 务器注册。 在本实施例中, 可以查询服务器中注册的 Widget ID中是否存在该 Widget ID。
步骤 C: 将服务请求中的 Widget ID和 API ID, 与 Widget的注册信息进 行比对, 确定该服务请求中的 Widget有使用该 API的权限。 由于在 Widget 的注册信息中包括 Widget ID和该 Widget所用到的收费 API服务信息, 该 Widget所用到的收费 API服务包括该 Widget使用的 API的 ID, 因此,将服务 请求中的 Widget ID与注册信息中的 Widget ID进行比对,将服务请求中的 API ID与 Widget所用到的收费 API服务中的 API ID进行比对, 若都相同, 则可 以确定该服务请求中的 Widget有使用该 API的权限。 在本实施例中, 当鉴权成功后, 执行步骤 S104, 确定是否需要触发计费 信息收集。 在本实施例中, 可以根据该 Widget的计费策略进行所述收集。 在 本实施例中, Widget 的计费策略可以包括融合计费、 统一计费、 按使用次数 计费、按时长计费、按包月计费和免费服务。在本实施例中,若当前的该 Widget 的计费策略为按包月计费或免费服务时, 不需要触发计费信息收集, 则执行步 骤 S108。 若当前的该 Widget的计费策略为按融合计费、 统一计费、 按时长计 费, 或按使用次数计费时, 需要触发计费信息收集, 则执行步骤 S106。
步骤 S106, 触发计费信息的收集。 当触发计费信息的收集的动作后, 就 开始执行步骤 S108与步骤 S114。
步骤 S108, 对用户的服务请求进行转换。 在本实施例中, 转换的方式为: 去除原始用户的服务请求中的鉴权信息,加入服务器与 API服务提供商协定好 的鉴权信息。 可以有二种不同的方式, 如下:
第一种: 以用户名密码方式鉴权:在服务请求中加入服务器在 API服务商 处注册的用户名和密码;
第二种: 以 IP地址进行鉴权: 在服务请求中去除原始用户的 IP信息, 加 入服务器的 IP信息。
步骤 S110, 将转换后的服务请求转发至对应的 API服务提供商。 在本实 施例中, 当 API服务提供商接收该服务请求后,会返回一个针对该服务请求的 响应至该服务器。在本实施例中, 当执行步骤 S110时,也可以执行步骤 S114。 当是按次数收费时, 需要记录步骤 S110中的转发服务请求至 API服务提供商 事件流的次数。
步骤 S112, 将 API服务提供商返回的该服务请求的响应转发至用户。 该响应为该 API服务提供商对该服务请求处理后的信息, 比如,若用户发 送一个天气预报的服务请求,则 API服务提供商将该天气预报的结果返回给用 户。
步骤 S114, 收集所述 Widget使用 API服务产生的计费信息, 记录所收集 的计费信息。 在本实施例中, 计费信息可以包括 user ID, Widget ID, 及所述 Widget使用的 API ID, 当然也可以还包括服务起始和结束时间, 转发服务请 求至 API服务提供商事件流的次数和转发该服务请求的响应至用户事件流的 次数。
步骤 S116,根据所记录的所述收集的计费信息和 Widget 注册的计费策略 对所述 Widget使用的 API服务进行计费结算。 在本实施例中, 通过根据所收 集的计费信息和注册的计费策略, 对用户使用 Widget时所使用的 API服务产 生的费用进行结算,从而可以避免用户需要向各 API服务提供商进行分别结算 的情况, 减少了用户繁杂的操作。
在本实施例中, 为实现服务器对 API服务提供商的结算, 还可以包括: 步骤 S 118, 与 API服务提供商进行结算。
本实施例提供的技术方案,通过服务器根据所收集的计费信息和注册的计 费策略, 对用户使用 Widget时所使用的 API产生的费用进行代理结算, 并再 与 API服务提供商进行代理结算, 从而可以避免用户需要向各 API服务提供 商进行分别结算的情况, 减少了用户繁杂的操作, 带来了更好的用户体验。
图 2为本发明实施例的图 1A中步骤 S114的具体流程图。
当触发计费信息的收集后, 在本实施例中, 步骤 S200, 获取用户所发起 的服务请求中的 user ID, Widget ID, 及所述 Widget使用的 API的 ID。
步骤 S202, 当服务器将 API服务提供商对该服务请求的响应转发至用户 后, 开始记录服务开始时间。在本实施例中, 当将 API服务提供商对该服务请 求的响应转发至用户后, 可以理解为, API服务提供商开始提供服务。 在本实 施例中, 也可以理解为, 当执行完图 1中的步骤 S 112后, 图 2中的步骤 S202 就开始执行, 即开始记录服务开始时间。
步骤 S204, 确定是否按服务时长计费。
在本实施例中, 若确定是按服务时长计费, 则执行步骤 S210, 即记录服 务结束时间。在本实施例中,记录服务结束时间为 API服务提供商结束提供服 务的时间。
若确定不是按服务时长计费, 则执行步骤 S206, 即记录服务完成次数。 在本实施例中,包括转发服务请求至 API服务提供商事件流的次数和转发该服 务请求的响应至用户事件流的次数。 在本实施例中, 可以记录步骤 S110中的 转发服务请求至 API服务提供商事件流的次数。 可以记录步骤 S112中的转发 该服务请求的响应至用户事件流的次数。在本实施例中,在不是按服务时长计 费的情况下, 可以按使用次数计费, 此时, 需要将转发服务请求至 API服务提 供商事件流的次数和转发该服务请求的响应至用户事件流的次数作为计费信 息。在本实施例中, 当转发服务请求至 API服务提供商事件流的次数和转发该 服务请求的响应至用户事件流的次数相等时,即用户的每次服务请求都得到了 API服务提供商的服务, 也可以理解为, 每次请求都完成了一次的服务; 若二 者不相等, 则说明有部分的服务没有得到提供。
在本实施例中,可以将以上步骤中所获取及所记录的信息作为生成账单的 原始计费信息, 即所收集的计费信息。
图 3为本发明实施例的图 1A中步骤 S116的实施流程图。
在本实施例中, 步骤 S300, 定期或周期性触发用户账单结算。
步骤 S302, 根据 user ID查询用户在一定时期内的所有原始计费信息。 步骤 S304,根据 Widget ID将该用户的原始计费信息进行分类。在本实施 例中, 每一类的 Widget都分配与该 Widget对应的计费信息。
步骤 S306, 根据 Widget ID查询该 Widget注册的计费策略。
步骤 S308,根据所述计费策略对所述 Widget使用的 API服务进行计费结 算。
在本实施例中, 当计费结算后, 还可以包括:
步骤 S310, 批价处理。 在本实施例中, 对所述 Widget使用的 API服务的 进行计费结算后的信息进行批价处理。
步骤 S312,输出综合账单。在本实施例中,此处的账单中可以包括 user ID、 使用的 widget ID, 使用的 API ID, 及所产生的金额费用。 在本实施例中, 月良 务器还可以根据用户的查询账单请求, 将所述用户的账单输出至用户, 这样, 用户就对所消费的金额一目了然。
在本实施例中, 执行完步骤 S308之后, 获得了对所述 Widget使用的 API 服务的结算信息, 结算后的信息包括 user ID及金额数目, 服务器还可以根据 计费结算后的信息扣除用户使用所述 Widget产生的费用金额。 在本实施例中, 可以由两种实现方式:
第一种, 若用户在服务器中有一个费用账户, 则服务器可以从该用户的费 用账户中扣除用户使用所述 Widget产生的费用金额;
第二种,将计费结算后的信息发送至所述运营商, 以通知所述运营商扣除 用户在所述运营商账户中的费用金额, 所述结算后的信息包括 user ID、 服务 器 ID及金额数目; 再接收所述运营商扣除用户在所述运营商账户中的费用金 额。
在本实施例中, 服务器可以将该扣除用户使用所述 Widget产生的费用金 额, 作为服务器的收入金额。
图 4为本发明实施例的图 3的具体实施流程图。
在本实施例中, 步骤 S400, 定期或周期性触发用户账单结算。
步骤 S402, 根据 user ID查询用户在一定时期内的所有原始计费信息。 步骤 S404,根据 Widget ID将该用户的原始计费信息进行分类。在本实施 例中, 每一类的 Widget都分配与该 Widget对应的计费信息。
步骤 S406, 根据 Widget ID查询该 Widget注册的计费策略。
在本实施例中,计费策略以融合计费、统一计费和按使用次数计费进行说 明。 在本发明的实施例中, 不限于以上三种计费策略。
若根据 Widget ID 查询该 Widget 的计费策略为融合计费时, 执行步骤 S408; 若根据 Widget ID查询该 Widget的计费策略为统一计费时, 执行步骤 S414; 若根据 Widget ID查询该 Widget的计费策略为按次数计费时, 执行步 骤 S418。 以下分别进行说明描述。
若为融合计费, 在本实施例中, 步骤 S408, 查询每条原始计费信息所涉 及的 API ID及该 API的计费策略。 在本实施例中, 融合计费的功能是指服务 器向用户输出综合账单, 即能够向用户输出各个 Widget的收费情况的账单。
步骤 S410, 分别计算各 API的使用费用。
步骤 S412, 将各 API的使用费用进行求和得到融合计费账单。 在本实施 例中, 若有需求, 可以进行相关的折扣计算。
若为统一计费, 在本实施例中, 统一计费是指制定按 Widget的使用情况 进行计费的策略, 在按 Widget进行收费后, 由于使用该 Widget而产生的对 API服务的使用将不再进行收费。 这种收费方式可以使得用户能够按 Widget 获得服务, 同时按 Widget进行付费, 可以避免服务与计费的对象不同带来的 不好体验。 在本实施例中, 可以按 Widget的包月计费, 包年计费、 使用时间 计费等等策略, 可以理解为, 对 Widget进行定购, 即在该 Widget的统一计费 策略中存在定购关系。
步骤 S414,根据该 Widget的统一计费策略中的定购关系对该 Widget进行 计费。 在本实施例中, 由于按定购关系进行计费, 因而对使用该 Widget而产 生的对 API服务的使用将不再进行收费。
步骤 S416, 输出该 Widget的计费后的账单。
若为按使用次数计费。 当然, 如果计费策略为按使用次数计费, 若在每次 使用过程中发送的服务请求中需包括 session id, 即每次使用过程中的对话包 括相同的 session id, 可以参考如下两个例进行说明, 即可以由两种方式来实 现, 一种是在打开 Widget时单独发一个消息, 另一种是在关闭 Widget时单独 发一个消息:
打开 Widget时的消息示例:
{
"user—id": "someone@huawei.com",
"engine_id": "widbeans.com",
"ts": 1193222693000,
"type": "start—widget",
"body": { "widget—id": "rss_newsl "}
}
关闭 Widget时的消息示例:
{
"user—id": "someone@huawei.com",
"engine_id": "widbeans.com",
"ts": 1193222693000, "type": "end—widget",
"body": { "widget—id": "rss_newsl "}
}
可见, 在打开和关闭 Widget的消息中的包括相同的 session id。
步骤 S418, 统计使用次数, 并按使用次数进行计费。 在本实施例中, 该 次数可以为图 2中的步骤 S206和 S208中的事件流的次数。
步骤 S420, 输出按使用次数计费后的该 Widget的账单。
在本实施例中, 执行步骤 S412或步骤 S416或步骤 S420后, 还可以执行 步骤 S422。
步骤 S422, 批价处理。
步骤 S424, 输出综合账单。 在本实施例中, 用户可以根据需要查询所使 用 API服务所产生的费用账单。
图 5为本发明实施例的图 1A中的步骤 S118的具体实施例流程图。
在本实施例中,服务器与 API服务提供商之间的鉴权方法和结算方法,可 以由两者之间进行企业级谈判后确定。 其中, 所涉及的结算信息, 可以由服务 器进行收集, 即图 2中的实施过程, 也可以由 API服务提供商进行统计得到, 即根据所述 API服务提供商提供的计费信息和所述 API服务提供商注册的 API 结算方式对所述 API服务提供商进行结算, 所述 API服务提供商提供的计费 信息包括 API ID、服务器 ID,及使用 API的完成服务次数或使用 API的时间。 在本实施例中, 以结算信息由服务器进行收集获得为例进行说明描述。
步骤 S500, 定期或周期性的触发服务器与 API服务提供商的账单结算。 步骤 S502, 根据 API ID 查询使用该 API的原始计费信息。
步骤 S504, 根据该 API ID查询 API服务提供商注册的该 API结算方式, 并按该结算方式进行结算。
步骤 S506, 累加统计该 API的结算信息。 即获得累加后的该 API的结算 账单, 可以理解为, 该 API服务提供商的该 API总的账单。
在本实施例中, 当获得 API服务提供商的结算信息后,根据结算信息中的 费用金额数目,从服务器中的收入中扣除该 API服务提供商的费用金额,作为 该 API服务提供商的收入或者是作为服务器的开支,即从所述扣除用户使用所 述 Widget产生的费用金额中, 获得所述 API服务提供商的费用金额。
当然, 由于 Widget的设计与开发是由开发者通过一定的努力获得的, 在 服务器可以让开发者也参与运营,可以从收入与开支之后的结算结果中的分发 一定比例的金额给开发者。 当然, 可以根据所述 Widget的使用率或市场价值 或用户的高评价度或受欢迎程度等等,从剩余的费用金额中分发相应的费用金 额至所述 Widget的开发者。 当然, 这个开发者, 可以是运营商本身, 也可以 单独的人。
本实施例提供的技术方案, 通过服务器统一代理收集 Widget使用 API服 务产生的计费信息,不需要 API服务提供商分别进行各自的计费信息收集,减 少了 API服务提供商繁杂的操作, 并通过服务器将用户使用 API服务的请求, 统一代理转发至 API服务提供商, 并将 API服务提供商对服务请求的响应转 发至用户,从而就不需要用户与多个 API服务提供商分别进行通信交互,减少 了用户繁杂的操作, 带来了更好的用户体验;
另外, 通过服务器将收集的计费信息和 Widget注册的计费策略, 对用户 使用 Widget时所使用的 API服务产生的费用进行结算, 从而可以避免用户需 要向各 API服务提供商进行分别结算的情况,减少了用户繁杂的操作,带来了 更好的用户体验,并且不需要 API服务提供商分别进行各自的计费结算,减少 了 API服务提供商繁杂的操作。服务器还可以为用户输出综合账单,可以使用 户清楚得知各个 Widget与 API服务的使用收费情况, 可以为用户带来更好的 用户体验。
图 6为本发明实施例的服务器的应用环境图。
在本实施例中, 用户终端 6通过服务器 7与 API服务提供商 8通信连接, 服务器并与运营商 9通信连接。 用户终端 6包括第一用户终端 61、 第二用户 终端 62 第 N用户终端 6N, API服务提供商 8包括第一 API服务提供商
81、 第二 API服务提供商 82 第 N API服务提供商 8N, 其中, 每个用户 终端上可以安装有多个 Widget。 在本实施例中, 服务器 7用于接收用户终端 6 发起的服务请求, 并对该服务请求进行鉴权并转换,将转换后的服务请求转发 至相应的 API服务提供商 8,并将 API服务提供商 8返回的针对该服务请求的 响应转发至用户终端 6。 在本实施例中, 服务器 7还用于根据所收集的计费信 息和注册的计费策略对用户终端 6所使用的 API服务进行结算, 并再与 API 服务提供商 8进行结算。
在一些应用环境中,服务器 7和 API服务提供商 8可以是同一实际服务提 供商提供的不同服务网元。 首先, 在这种应用对应的实施例中, 服务器 7可以 包含图 4对应实施例所述的 Widget的代理服务的所有功能, 也可以与图 1对 应实施例类似,不包含 "对 API服务提供商进行统一计费结算"的功能。其次, 服务器 7与 API服务提供商 8的实际服务提供商可以相同, 此时 API服务器 中可不包含用户以及用户终端的应用等信息,所述用户以及用户终端的应用等 信息可依赖于服务器 7提供运营。此外,服务器 7除了之前各实施例提及的各 种功能外,还可包括如背景技术所述的特点, 即服务器 7中所涉及的最终业务 可由第三方, 特别是自由开发者开发, 由开发者开发后自动上传到服务器 7 中。 即在该实施例中, 服务器 7不仅提供面向用户终端的代理服务, 而且还提 供面向自由开发者的应用上传服务。
图 7为本发明实施例的服务器的结构图。
在本实施例中, 服务器 7包括 Widget注册管理单元 71、 API注册管理单 元 72、 服务代理单元 73、 计费单元 74、 用户费用管理单元 75、 服务器费用管 理单元 76、 及 API服务提供商费用管理单元 77。 在本实施例中, 服务代理单 元 73包括服务请求鉴权子单元 731、服务请求转换子单元 732、服务请求转发 子单元 733、 服务应答接收子单元 734及服务应答转发子单元 735; 计费单元 74包括账号管理子单元 741、 计费信息收集子单元 742、 与 API服务提供商结 算子单元 742、 账单生成子单元 744、 及与用户结算子单元 745。
在本实施例中, Widget注册管理单元 71用于接收所述 Widget的注册信息, 即管理每个用户终端上的注册的 Widget, 也可以理解为, 用户在使用安装有 Widget的用户终端时, 需要将该 Widget在服务器进行注册, 其中需要注册的 信息包括该 Widget ID, Widget计费策略, 及该 Widget所用到的收费 API服 务。 当然, 该 Widget所用到的收费 API服务包括该 Widget使用的 API的 ID。 同时, 该用户也需要在该服务器上进行注册, 以确保该用户拥有使用的权限。 API注册管理单元 72用于接收所述 API服务提供商的注册信息, 所述注 册信息包括 API的结算方式, 即管理 API服务提供商在服务器注册的 API。
在本实施例中, 当用户需要通过使用用户终端 6中的 Widget来享受服务 时, 需要用户终端 6发起使用 API的服务请求。在本实施例中,服务请求鉴权 子单元 731用于接收用户终端 6发起的服务请求, 并对该服务请求进行鉴权。 在本实施例中, 该服务请求中包括鉴权信息, 该鉴权信息包括 user ID, Widget ID, 及 API ID。 在本实施例中, 该 Widget ID为用户使用的 Widget的 ID, API ID为用户需要请求使用 API的 ID。 当然, 该鉴权信息可以包括该用户的 IP 信息。
在本实施例中,服务请求鉴权子单元 731还用于根据服务请求中的 user ID 确定该用户为服务器注册用户, 拥有服务器的使用权限。 在本实施例中, 可以 查询服务器中注册的用户中是否存在该 user ID。 之后, 服务请求鉴权子单元 731还用于根据服务请求中的 Widget ID确定该用户使用的 Widget已经在服务 器注册。在本实施例中,可以查询服务器中注册的 Widget中是否存在该 Widget ID。 之后, 服务请求鉴权子单元 731还用于将服务请求中的 Widget ID和 API ID, 与 Widget的注册信息进行比对, 确定该服务请求中的 Widget有使用该 API的权限。
服务请求转换子单元 732用于当服务请求鉴权子单元 731鉴权成功后,对 用户的服务请求进行转换。 在本实施例中, 转换的方式为: 去除原始用户的服 务请求中的鉴权信息,加入服务器与 API服务提供商协定好的鉴权信息。可以 有二种不同的方式, 如下:
第一种: 以用户名密码方式鉴权:在服务请求中加入服务器在 API服务商 处注册的用户名和密码;
第二种: 以 IP地址进行鉴权: 在服务请求中去除原始用户的 IP信息, 加 入服务器的 IP信息。
服务请求转发子单元 733用于将服务请求转换子单元 732转换后的服务请 求转发至对应的 API服务提供商。 在本实施例中, 当 API服务提供商接收该 服务请求后, 会返回一个针对该服务请求的响应至该服务器。
服务应答接收子单元 734还用于接收 API服务提供商针对该服务请求的响 应。
服务应答转发子单元 735还用于将服务应答接收子单元 734接收的响应转 发至用户终端。该响应为该 API服务提供商对该服务请求处理后的信息,比如, 若用户发送一个天气预报的服务请求,则 API服务提供商将该天气预报的结果 返回给用户终端。
在本实施例中, 当服务请求鉴权子单元 731 鉴权成功后, 计费单元 741 中的计费信息收集子单元 742用于确定是否需要触发计费信息收集,并当确定 需要触发计费信息收集时, 收集并记录计费信息。 计费信息可以包括 user ID, Widget ID, 及 API ID, 当然也可以还包括服务起始和结束时间, 服务完成次 数。 在本实施例中, 可以将所收集的计费信息作为生成账单的原始计费信息。 有关该具体的收集计费信息可以参考图 2, 此处不再重复描述。
账号管理子单元 741用于管理在服务器注册的用户账号。
与用户结算子单元 745用于根据计费信息收集子单元 742记录收集的计费 信息和 Widget注册管理单元 71中的计费策略, 生成所述用户终端的账单, 即 对用户终端所使用的 API服务进行结算。 在本实施例中, 与用户结算子单元 745 还用于根据 user ID 查询用户在一定时期内的所有原始计费信息, 根据 Widget ID将该用户的原始计费信息进行分类, 根据 Widget ID查询该 Widget 注册的计费策略, 及根据计费策略完成有关该 Widget的计费。
账单生成子单元 744用于根据与用户结算子单元 745 的结算结果输出账 单。 在本实施例中, 账单生成子单元 744用于根据用户的查询账单请求, 将所 述用户的账单输出至用户。
在本实施例中, 在对用户所述 Widget使用的 API服务进行计费结算后, 服务器费用管理单元 76用于根据与用户结算子单元 745计费结算后的信息从 所述用户费用管理单元 75中扣除用户使用所述 Widget产生的费用金额,所述 结算后的信息包括 user ID及金额数目, 其中, 用户费用管理单元 75用于管理 用户的费用金额。 在本实施例中, 可以将该扣除用户使用所述 Widget产生的 费用金额作为服务器的收入。
在本实施例中,与用户结算子单元 745还可以将计费结算后的信息发送至 所述运营商, 以通知所述运营商扣除用户在所述运营商账户中的费用金额, 所 述结算后的信息包括 user ID、服务器 ID及金额数目; 服务器费用管理单元 76 接收所述运营商扣除用户在所述运营商账户中的费用金额。在本实施例中, 可 以将该扣除用户使用所述 widget产生的费用金额作为服务器的收入。
与 API服务提供商结算子单元 743用于根据计费信息收集子单元 742收集 的计费信息和 API注册的结算方式对所述 API进行结算。 在本实施例中, 具 体为: 根据 API ID 查询使用该 API的原始计费信息, 并根据该 API ID查询 该 API注册的结算方式, 并按该结算方式进行结算。
在本实施例中, 与 API服务提供商结算子单元 743用于还可以根据所述 API服务提供商提供的计费信息和所述 API服务提供商注册的 API结算方式对 所述 API服务提供商进行结算,所述 API服务提供商提供的计费信息包括 API ID、 服务器 ID, 及使用 API的完成服务次数或使用 API服务的开始与结束时 间。
在本实施例中, 当对 API服务提供商进行结算后, API服务提供商费用管 理单元 77, 用于根据与 API服务提供商结算子单元 743对所述 API服务提供 商进行结算后的费用金额数目, 从所述服务器费用管理单元 76管理的费用金 额中, 扣除该 API服务提供商的费用金额, 作为该 API服务提供商的收入或 者是作为服务器的开支, 即从所述扣除用户使用所述 Widget产生的费用金额 中, 获得所述 API服务提供商的费用金额。
API服务提供商费用管理单元 77还用于获得所述 API服务提供商的费用 金额, 并将所述获得的所述 API服务提供商的费用金额分发给所述 API服务 提供商。
当然, 由于 Widget的设计与开发是由开发者通过一定的努力获得的, 在 服务器可以让开发者也参与运营,可以从收入与开支之后的结算结果中的分发 一定比例的金额给开发者。 当然, 可以根据所述 Widget的使用率或市场价值 或用户的高评价度或受欢迎程度等等,从剩余的费用金额中分发相应的费用金 额至所述 Widget的开发者。 当然, 这个开发者, 可以是运营商本身, 也可以 单独的人。 在本实施例中, 服务器费用管理单元 76 还用于根据所述 Widget 的使用率或市场价值或用户的高评价度或受欢迎程度等等,从剩余的费用金额 中分发相应的费用金额至所述 Widget的开发者。
账单生成子单元 744还用于累加统计该 API的结算信息。即获得累加后的 该 API的结算账单, 可以理解为, 该 API的总的账单。
本实施例提供的技术方案, 通过服务器统一代理收集 Widget使用 API服 务产生的计费信息,不需要 API服务提供商分别进行各自的计费信息收集,减 少了 API服务提供商繁杂的操作, 并通过服务器将用户使用 API服务的请求, 统一代理转发至 API服务提供商, 并将 API服务提供商对服务请求的响应转 发至用户,从而就不需要用户与多个 API服务提供商分别进行通信交互,减少 了用户繁杂的操作, 带来了更好的用户体验;
另外, 通过服务器将收集的计费信息和 Widget注册的计费策略, 对用户 使用 Widget时所使用的 API服务产生的费用进行结算, 从而可以避免用户需 要向各 API服务提供商进行分别结算的情况,减少了用户繁杂的操作,带来了 更好的用户体验,并且不需要 API服务提供商分别进行各自的计费结算,减少 了 API服务提供商繁杂的操作。服务器还可以为用户输出综合账单,可以使用 户清楚得知各个 Widget与 API服务的使用收费情况, 可以为用户带来更好的 用户体验。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体 ( Random Access Memory, RAM )等。
以上所述仅为本发明的几个实施例,本领域的技术人员依据申请文件公开 的可以对本发明进行各种改动或变型而不脱离本发明的精神和范围。本领域普 况下可以互相结合形成新的实施例。

Claims

权 利 要 求
1、 一种应用于微件 Widget的代理服务的方法, 其特征在于, 所述方法包 括:
接收用户终端发起的 Widget使用应用程序编程接口 API的服务请求; 将所述服务请求转发至 API服务提供商, 并将所述 API服务提供商对所 述服务请求的响应转发于所述用户终端;
收集所述 Widget使用 API服务产生的计费信息, 记录所述计费信息, 所 述计费信息用于与所述 Widget注册的计费策略一起对所述 Widget使用的 API 服务进行统一计费。
2、 根据权利要求 1所述的方法, 其特征在于, 所述将所述服务请求转发 至 API服务提供商包括:
对所述服务请求进行鉴权;
当鉴权成功后, 对所述服务请求进行转换;
将转换后的服务请求转发至 API服务提供商。
3、 根据权利要求 2所述的方法, 其特征在于, 所述服务请求包括鉴权信 息,所述鉴权信息包括用户 user ID, Widget ID,及所述 Widget使用的 API ID, 所述对所述服务请求进行鉴权包括: 根据所述 user ID确定所述用户终端 的用户为注册用户, 拥有使用权限;
根据所述 Widget ID确定所述用户使用的 Widget已经注册;
将所述 Widget ID和 API ID, 与 Widget的注册信息进行比对, 确定所述
Widget有使用所述 API的权限。
4、 根据权利要求 1所述的方法, 其特征在于, 所述收集所述 Widget使用 API服务产生的计费信息, 记录所述计费信息包括:
在将 API服务提供商对所述服务请求的响应转发至所述用户终端后,开始 记录服务开始时间;
若按服务时长计费时, 记录服务结束时间。
5、 根据权利要求 4所述的方法, 其特征在于, 所述收集所述 Widget使用 API服务产生的计费信息, 记录所述收集的计费信息还包括:
若不按服务时长计费时, 记录服务完成次数。
6、 根据权利要求 1至 5中任一项所述的方法, 其特征在于, 还包括: 根据 user ID查询用户终端的用户在一定时期内的计费信息;
根据 Widget ID将所述用户在一定时期内的计费信息进行分类;
根据 Widget ID查询所述 Widget注册的计费策略;
根据所述计费策略和进行所述分类后的计费信息对所述 Widget使用的
API服务进行计费结算。
7、 根据权利要求 6所述的方法, 其特征在于, 还包括:
对计费结算后的信息进行批价处理;
输出综合账单。
8、 根据权利要求 1所述的方法, 其特征在于, 还包括:
根据所述计费信息和所述 API服务提供商注册的 API结算方式对所述 API 服务提供商进行结算。
9、 根据权利要求 8所述的方法, 其特征在于, 所述根据所述计费信息和 API注册的结算方式对所述 API服务提供商进行结算包括:
根据所述 API ID 查询使用所述 API时收集的计费信息;
根据所述 API ID查询所述 API服务提供商注册的所述 API结算方式, 并 按所述结算方式对所述计费信息进行结算;
累加统计所述 API服务提供商的结算信息。
10、 根据权利要求 1至 9中任一项所述的方法, 其特征在于, 还包括: 根据所述 API服务提供商提供的计费信息和所述 API服务提供商注册的
API结算方式对所述 API服务提供商进行结算,所述 API服务提供商提供的计 费信息包括 API ID、服务器 ID,及使用 API的完成服务次数,或包括 API ID、 服务器 ID, 及使用 API的时间。
11、 根据权利要求 8或 9所述的方法, 其特征在于, 还包括:
根据计费结算后的信息扣除用户使用所述 Widget产生的费用金额, 所述 计费结算后的信息包括 user ID及金额数目;
根据对所述 API服务提供商进行结算后的费用金额数目,从所述扣除用户 使用所述 Widget产生的费用金额中, 获得所述 API服务提供商的费用金额; 将所述获得的所述 API服务提供商的费用金额分发给所述 API服务提供 商。
12、 一种服务器, 其特征在于, 应用于微件 Widget的代理服务, 所述服 务器分别与多个用户终端和多个 API服务提供商通信连接, 包括:服务代理单 元及计费单元;
所述服务代理单元用于接收用户终端发起的 Widget使用应用程序编程接 口 API的服务请求, 并将所述服务请求转发至 API服务提供商, 将所述 API 服务提供商对所述服务请求的响应转发于所述用户终端;
所述计费单元用于当所述服务代理单元接收所述服务请求后, 收集所述 Widget使用 API服务产生的计费信息, 并记录所述计费信息, 所述计费信息 用于与所述 Widget注册的计费策略一起对所述 Widget使用的 API服务进行统 一计费。
13、 根据权利要求 12所述的服务器, 其特征在于, 所述服务代理单元还 用于对所述服务请求进行鉴权, 并当鉴权成功后, 对所述服务请求进行转换。
14、 根据权利要求 12所述的服务器, 其特征在于, 所述服务请求包括鉴 权信息,所述鉴权信息包括 user ID, Widget ID,及所述 Widget使用的 API ID; 所述服务代理单元还用于根据所述 user ID确定所述用户终端的用户为注 册用户,拥有使用权限,根据所述 Widget ID确定所述用户使用的 Widget已经 注册, 将所述 Widget ID和 API ID, 与 Widget的注册信息进行比对, 确定所 述 Widget有使用所述 API的权限。
15、 根据权利要求 12所述的服务器, 其特征在于, 所述计费单元还用于 根据 user ID查询用户在一定时期内的计费信息, 根据 Widget ID将所述用户 在一定时期内的计费信息进行分类,根据 Widget ID查询所述 Widget注册的计 费策略, 根据所述计费策略和进行所述分类后的计费信息对所述 Widget使用 的 API服务进行计费结算。
16、 根据权利要求 12所述的服务器, 其特征在于, 还包括:
用户费用管理单元, 用于管理用户的费用金额;
服务器费用管理单元,用于根据所述计费单元计费结算后的信息从所述用 户费用管理单元管理的所述用户的费用金额中扣除用户使用所述 Widget产生 的费用金额, 所述计费结算后的信息包括 user ID及金额数目。
17、 根据权利要求 12所述的服务器, 其特征在于, 所述服务器还与运营 商通信连接, 还包括:
所述计费单元,还用于将计费结算后的信息发送至所述运营商, 以通知所 述运营商扣除用户在所述运营商账户中的费用金额, 所述结算后的信息包括 user ID、 服务器 ID及金额数目;
所述服务器费用管理单元,还用于接收所述运营商扣除用户在所述运营商 账户中的费用金额。
18、 根据权利要求 12所述的服务器, 其特征在于, 所述计费单元还用于 根据所述计费信息和所述 API服务提供商注册的 API结算方式对所述 API服 务提供商进行结算。
19、 根据权利要求 12所述的服务器, 其特征在于, 所述计费单元还用于 根据所述 API服务提供商提供的计费信息和所述 API服务提供商注册的 API 结算方式对所述 API服务提供商进行结算, 所述 API服务提供商提供的计费 信息包括 API ID与服务器 ID,及使用 API的完成服务次数或使用 API服务的 开始与结束时间。
20、 根据权利要求 16所述的服务器, 其特征在于, 还包括:
API服务提供商费用管理单元,用于根据所述计费单元对所述 API服务提 供商进行结算后的费用金额数目,从所述服务器费用管理单元管理的费用金额 中, 获得所述 API服务提供商的费用金额, 并将所述获得的所述 API服务提 供商的费用金额分发给所述 API服务提供商。
PCT/CN2010/078438 2009-11-18 2010-11-05 一种应用于微件Widget的代理服务的方法及服务器 WO2011060689A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/338,375 US8832250B2 (en) 2009-11-18 2011-12-28 Method and server for agent service applied to widget

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910109675.9A CN102065057B (zh) 2009-11-18 2009-11-18 一种应用于Widget的代理服务的方法及服务器
CN200910109675.9 2009-11-18

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/338,375 Continuation US8832250B2 (en) 2009-11-18 2011-12-28 Method and server for agent service applied to widget

Publications (1)

Publication Number Publication Date
WO2011060689A1 true WO2011060689A1 (zh) 2011-05-26

Family

ID=44000161

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078438 WO2011060689A1 (zh) 2009-11-18 2010-11-05 一种应用于微件Widget的代理服务的方法及服务器

Country Status (3)

Country Link
US (1) US8832250B2 (zh)
CN (1) CN102065057B (zh)
WO (1) WO2011060689A1 (zh)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9083534B2 (en) 2011-01-07 2015-07-14 Mastercard International Incorporated Method and system for propagating a client identity
US8671385B2 (en) * 2011-01-07 2014-03-11 Mastercard International Incorporated Methods and systems for throttling calls to a service application through an open API
US8677308B2 (en) * 2011-01-07 2014-03-18 Mastercard International Incorporated Method and system for generating an API request message
US9032204B2 (en) 2011-01-07 2015-05-12 Mastercard International Incorporated Methods and systems for providing a signed digital certificate in real time
US9007945B2 (en) * 2013-01-23 2015-04-14 Dell Products L.P. Automated network service discovery and communication
US20150181045A1 (en) * 2013-12-23 2015-06-25 Sap Ag Flexibile event rating
CN104506371A (zh) * 2015-01-04 2015-04-08 华为技术有限公司 一种应用程序编程接口api调用记录的管理方法和装置
US10798186B2 (en) * 2016-06-09 2020-10-06 International Business Machines Corporation Dynamic generation of network routing configuration with service requirements
US10445151B1 (en) * 2016-09-14 2019-10-15 Google Llc Distributed API accounting
TWI606349B (zh) * 2016-12-21 2017-11-21 財團法人工業技術研究院 線上雲端服務處理系統與線上評測方法及其電腦程式產品
CN108270578B (zh) * 2016-12-30 2021-09-21 中国移动通信集团上海有限公司 一种会话相关的网络能力api计费方法及装置
CN107707368A (zh) * 2017-09-12 2018-02-16 厦门集微科技有限公司 一种api服务的扣费处理方法及服务器
CN109714177A (zh) * 2017-10-25 2019-05-03 中兴通讯股份有限公司 计费方法、平台及可读存储介质
CN113676338A (zh) * 2017-11-10 2021-11-19 华为技术有限公司 基于api内容的计费方法及能力开放功能实体
JP6522718B1 (ja) * 2017-11-22 2019-05-29 ソフトバンク株式会社 Api課金システム、api課金管理方法、及び、api課金プログラム
CN109949064B (zh) * 2017-12-20 2021-09-03 北京京东尚科信息技术有限公司 一种开放接口调用计费方法和装置
CN112953731B (zh) * 2021-02-26 2022-05-03 浪潮云信息技术股份公司 一种基于api网关的api高级流控及计量方法
CN114500128B (zh) * 2022-02-07 2023-05-23 北京百度网讯科技有限公司 一种流控计费方法、装置、系统、电子设备、介质及产品

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217752A (zh) * 2007-01-04 2008-07-09 中国移动通信集团公司 一种组合业务计费方法及其服务代理
US20090144066A1 (en) * 2007-11-30 2009-06-04 Leviathan Entertainment, Inc. Method and System for Differential Billing
CN101562802A (zh) * 2009-05-07 2009-10-21 浙江大学 移动Widget发布平台的实现方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924869B2 (en) * 2005-08-12 2014-12-30 Barry Fellman Service for generation of customizable display widgets
US20140020068A1 (en) * 2005-10-06 2014-01-16 C-Sam, Inc. Limiting widget access of wallet, device, client applications, and network resources while providing access to issuer-specific and/or widget-specific issuer security domains in a multi-domain ecosystem for secure personalized transactions
US9104294B2 (en) * 2005-10-27 2015-08-11 Apple Inc. Linked widgets
CN100589559C (zh) * 2006-11-30 2010-02-10 中兴通讯股份有限公司 数字电视运营支撑系统中实现内容计费传输的方法和装置
CN101212792B (zh) 2006-12-27 2010-12-08 中国移动通信集团公司 融合类业务的计费信息处理方法
US8595186B1 (en) * 2007-06-06 2013-11-26 Plusmo LLC System and method for building and delivering mobile widgets
US8209378B2 (en) * 2007-10-04 2012-06-26 Clearspring Technologies, Inc. Methods and apparatus for widget sharing between content aggregation points
US20090138579A1 (en) * 2007-11-26 2009-05-28 Emtrace Technologies, Inc. Remote configuration of electronic device with user interface provided from electronic device
CN101282227B (zh) 2008-05-13 2010-09-22 华为技术有限公司 对服务进行计费的方法、集中控制设备和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217752A (zh) * 2007-01-04 2008-07-09 中国移动通信集团公司 一种组合业务计费方法及其服务代理
US20090144066A1 (en) * 2007-11-30 2009-06-04 Leviathan Entertainment, Inc. Method and System for Differential Billing
CN101562802A (zh) * 2009-05-07 2009-10-21 浙江大学 移动Widget发布平台的实现方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MIN DONG ET AL.: "Study of Mobile Widget Service.", JOURNAL OF TELECOMMUNICATION NETWORK TECHNIQUES., February 2009 (2009-02-01), pages 27 - 30 *

Also Published As

Publication number Publication date
US20120102179A1 (en) 2012-04-26
CN102065057B (zh) 2014-07-16
US8832250B2 (en) 2014-09-09
CN102065057A (zh) 2011-05-18

Similar Documents

Publication Publication Date Title
WO2011060689A1 (zh) 一种应用于微件Widget的代理服务的方法及服务器
JP4842317B2 (ja) オンライン課金管理サーバー
US7684551B2 (en) Method, means and a computer program product for managing online charging in a communications network
JP4100870B2 (ja) テレコミュニケーションネットワークのサービス制御
US9059871B2 (en) Policy-based communication system and method
CN111742521B (zh) 使用区块链的增量计费
US20090006229A1 (en) System and method for telephony billing codes
US20090299920A1 (en) Methods and systems for building custom appliances in a cloud-based network
JP5380428B2 (ja) オンライン課金およびオフライン課金をサポートするための前払請求書作成機におけるレーティングタイマ制御の実施
JP2003529827A (ja) 複数のサービス・プロバイダを介して提供されるサービスに対するアクセスに関係する取引データを正規化する方法およびシステム
JP2003524265A (ja) 複数のパーティ間におけるサービス・アクセスの財務上の決済を円滑にする方法およびシステム
WO2006111095A1 (fr) Reseau de charge, appareil formant agent de charge et procede de charge correspondant
JP2004502991A (ja) サービス・アクセス取引を仲介する方法およびシステム
WO2011082644A1 (zh) 在线计费方法及装置
JP6946066B2 (ja) ゲートウェイ装置、利用管理システム、利用制御方法及び利用制御プログラム
JP2002345030A (ja) ウェブサイトアクセスサービス提供システム
WO2019101082A1 (zh) 一种增值业务的实现方法、装置和行业应用鉴权中心
EP1526678A1 (en) Method, system and computer program product for online charging in a communications network
US8422652B2 (en) Device and method for managing communication credits associated to use of services by a terminal
WO2009149610A1 (zh) 在线计费方法和装置
WO2012167756A1 (zh) P2p流量计费方法及isp计费设备
EP1772005A2 (en) Dedicated wireless device business method
WO2011082642A1 (zh) 离线计费方法及装置
WO2014153720A1 (zh) 计费方法、接入设备和计费设备
WO2012088897A1 (zh) 认证服务器、计费服务器、服务质量控制方法和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10831104

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10831104

Country of ref document: EP

Kind code of ref document: A1