Web/API/Services

From Mandriva Community Wiki

Jump to: navigation, search
Services API

This API is supposed to describe paid services available through Mandriva (support, club, online, downloads, etc.).

Contents


Services description (support, club, update) is distinct from the scope (for this distribution, for this time span).

Notes:

  • a service belongs to: support, club, update, download, traning, store, others?
  • what about service attribute? (time, type, scope?)

[edit] Methods

[edit] Public

[edit] get services list

GET http://api.mandriva.com/services/

returns

<services>
  <service><id>http://api.mandriva.com/service/club</id><name>Mandriva Club</name></service>
  <service><id>http://api.mandriva.com/service/online</id><name>Mandriva Online</name></service>
</services>

[edit] get service (id)

GET http://api.mandriva.com/service/club

returns

<service>
  <id>http://api.mandriva.com/service/club</id>
  <name>Mandriva Club</name>
  <provides>...</provides>
  <description></description>
  <levels>
    <level><id>http://api.mandriva.com/service/club/level/standard</id>
           <name>Standard</name></level>
    ...
  </levels>
</service>

[edit] Services activation keys API

Activation keys are used by customers to register/activate services to their account.

[edit] Methods

[edit] Private

  • fetch new keys

To allow Mandriva people or partners to fetch new activation keys

[edit] Public

  • tegister key
    • To allow anyone to register a key (and activate attached services).
    • Params: (key, user_id)
  • check my keys
    • Params: (user_id, user_pass)
Personal tools