JSON-API
Opened this issue · 1 comments
ADoebeling commented
$rpf
->getApi() // Load the API
->getDomainReadEntry() // Load the API-module domainReadEntry (bbDomain::readEntry)
->setOeid('ZY') // Optional: Get domains by hidden rp2-order-id
->addNameserver() // Optional: Add dns-records
->get(); // Return result as array, primary-key set to domain
as json-api:
- $domain.tld/json.v1/getApi/getDomainEntry/setOeid=ZY/addNameserver[=1][/getArray]
- $domain.tld/json.v1/getApi()->getDomainEntry()->setOeid(XY)->addNameserver()[/getArray]
- Add help-urls like api.github.com
\/(json\.v1|get\w*|add\w*|set\w*)\=?(\w*)(\,\w*)*
$re = "/\\/(json\\.v1|get\\w*|add\\w*|set\\w*)\\=?(\\w*)?\\,?(\\w*)\\,?(\\w*)\\,?(\\w*)\\,?(\\w*)\\,?(\\w*)/s";
$str = "\$domain.tld/json.v1=true/getApi=true/getDomainEntry/setOeid=ZY/addNameserver=1,2,test,4/getArray\n\njhkhjk\n\nlkjlj\n\n";
preg_match_all($re, $str, #$matches);
- getJson
- getXml
- getYaml
getDebug()
Gibt json als als debug-ansicht im Browser aus
LBeckX commented
Reminder