API: getRandomContent
Utfører søk på artister, utgivelser, plateselskap og geografiske sted.
URL til tjeneste
- https://www.rockipedia.no/api/getRandomContent (REST)
- https://www.rockipedia.no/api/soap?wsdl (SOAP)
Tilgjengelige parametere
Parameter | Datatype | Beskrivelse |
---|---|---|
resourcetype | string | Type ressurs (artist|album|label|location) |
count | string | Antall returnerte referanser |
output | string | Angir ønsket respons (XML eller JSON) |
apikey | string | Din unike API-nøkkel |
Eksempel på spørring vha REST
Eksempel på spørring vha SOAP
<urn:getRandomContent soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <resourcetype xsi:type="xsd:string">artist</resourcetype> <count xsi:type="xsd:int">10</count> <output xsi:type="xsd:string">xml</output> <apikey xsi:type="xsd:string">s7z3jc29ck</apikey> </urn:getRandomContent>