Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
domeneshop.js
Advanced tools
Changelog
[0.1.8] - 2021-01-06
Readme
Javascript library for the Domeneshop API.
npm install domeneshop.js
Use of this module requires Domeneshop API credentials.
You need an API token and secret. See the Domeneshop API documentation for more information.
CAUTION: You should protect these API credentials as you would the password to your Domeneshop user account. Users who can read this information can use these credentials to issue arbitrary API calls on your behalf.
const Domeneshop = require('domeneshop.js');
const api = new Domeneshop("<api token>","<api secret>");
api.getDomains().then((domains) => {
for(let domain of domains) {
api.dns.getRecords(domain.id).then((record) => {
console.log(domain.domain);
console.log(record);
});
}
}).catch((err)=>{
console.error(err);
});
new Domeneshop(token, secret)
Creates a new Domeneshop API instance.
Domeneshop.getDomain(domainId)
Get information about one of your domains.
{
"domain": "example.com",
"expiry_date": "2120-01-01",
"id": 1234567890,
"nameservers": [
"ns1.hyp.net",
"ns2.hyp.net",
"ns3.hyp.net"
],
"registered_date": "1990-01-01",
"registrant": "ICANN",
"renew": true,
"services":
{
"dns": true,
"email": false,
"registrar": true,
"webhotel": "none"
},
"status": "active"
}
Domeneshop.getDomains()
List all domains on your account.
Returns a list of objects in the same shape as getDomain(domainId)
.
Domeneshop.dns
This namespace contains all methods to manipulate DNS records for domains.
Domeneshop.dns.getRecord(domainId, recordId)
Get a specific DNS record for a domain.
Note:: The host field does not include the domain name. An A record for www.example.com
should only have www
in its host field.
{
"data": "127.0.0.1",
"host": "www",
"id": 1591030,
"ttl": 3600,
"type": "A"
}
Domeneshop.dns.getRecords(domainId)
List all DNS records for a domain.
Domeneshop.dns.createRecord(domainId, record)
Creates a new DNS record for a domain. The record format is JSON with required parameters like the one returned from getRecord.
For full definition see the TypeScript interfaces defined in src/lib/interfaces/dnsrecord.ts
Domeneshop.dns.modifyRecord(domainId, recordId, record)
Modifies a specific DNS record for a domain.
Note: You can't modify the host nor the type field. If you want to modify these fields, delete the existing DNS record and recreate it.
Domeneshop.dns.deleteRecord(domainId, recordId)
Deletes a specific DNS record for a domain.
Domeneshop.forwards
This namespace contains all methods to manipulate http 301 forwarding for host names on domains.
Domeneshop.forwards.getForward(domainId, host)
Get a specific forwarding for a host name.
Note:: The host field does not include the domain name. A forwarding for www.example.com
should only have www
in its host field.
{
"host": "www",
"frame": false,
"url": "http://example.com/"
}
Domeneshop.forwards.getForwards(domainId)
List all forwardings for a domain.
Domeneshop.forwards.createForward(domainId, forward)
Creates a new forwarding for a host name on a domain. The record format is JSON with required parameters like the one returned from getForward.
Domeneshop.forwards.modifyForward(domainId, host, forward)
Modifies a specific forwardings for a host name on a domain.
Note: You can't modify the host field. If you want to modify this field, delete the existing forwarding and recreate it.
Domeneshop.forwards.deleteForward(domainId, host)
Deletes a specific forwarding for a host name on a domain.
Domeneshop.invoices
This namespace contains all methods to read invoice information on an account.
Domeneshop.invoices.getInvoice(invoiceID)
Get one invoice.
{
"amount": 120,
"currency": "NOK",
"due_date": "2097-11-14",
"id": 1,
"issued_date": "2097-10-30",
"paid_date": "2098-11-10",
"status": "paid",
"type": "invoice",
"url": "https://domene.shop/invoice?nr=1"
}
Domeneshop.invoices.getInvoices(status)
List all invoices for an account. Might be filtered by status
.
status
is optional, and might be one of "paid", "unpaid" or "settled". "settled" means the invoice is settled by a credit note.
FAQs
Javascript package for the Domeneshop API
The npm package domeneshop.js receives a total of 1 weekly downloads. As such, domeneshop.js popularity was classified as not popular.
We found that domeneshop.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.