meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
domains [2023/09/14 19:54] johnnydomains [2024/08/29 20:13] (current) – external edit 127.0.0.1
Line 16: Line 16:
 {{:domains-edit.png?direct|}} {{:domains-edit.png?direct|}}
  
 +===== API =====
 +/api/v1/domains
  
 +==== Read - Retrieve domain information via API (/read.php) ====
 +
 +  * Default / No params - Returns all domains
 +  * domain_id - Specific domain ID from the ITFlow database
 +  * domain_name - Domain Name
 +  * client_id - Returns all domains for a specific client
 +
 +<code>
 +Invoke-RestMethod -Uri "http://127.0.0.1/itflow/api/v1/domains/read.php?api_key=XetQjoZiti5Opg7y&domain_id=7" | ConvertTo-Json
 +
 +{
 +    "success":  "True",
 +    "count":  1,
 +    "data":  [
 +                 {
 +                     "0":  "7",
 +                     "domain_id":  "7",
 +                     "1":  "itflow.org",
 +                     "domain_name":  "itflow.org",
 +                     "2":  "2022-02-06",
 +                     "domain_expire":  "2022-02-06",
 +                     "3":  "2022-02-05 18:15:07",
 +                     "domain_created_at":  "2022-02-05 18:15:07",
 +
 +[...]
 +</code>