Skip to content

Commit

Permalink
Merge pull request #47 from exonet/dependabot/github_actions/release-…
Browse files Browse the repository at this point in the history
…drafter/release-drafter-6

Bump release-drafter/release-drafter from 5 to 6
  • Loading branch information
robbinjanssen committed Feb 6, 2024
2 parents fd7d003 + d5c24f0 commit 0e8cdcc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Run release drafter
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 4 additions & 2 deletions examples/dns_record_post.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

// Run this script using: php examples/dns_record_post.php <YOUR-TOKEN>

use Exonet\Api\Auth\PersonalAccessToken;
use Exonet\Api\Client;
use Exonet\Api\Structures\ApiResource;

require __DIR__.'/../vendor/autoload.php';

$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]);
$authentication = new PersonalAccessToken($argv[1]);

// Make an Exonet API client that connects to the test API.
$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL);
$exonetApi = new Client($authentication, Client::API_TEST_URL);

/*
* Get a single dns_zone resource. Because depending on who is authorized, the dns_zone IDs change, all dns_zones are
Expand Down
7 changes: 5 additions & 2 deletions examples/dns_zone_details.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<?php

use Exonet\Api\Auth\PersonalAccessToken;
use Exonet\Api\Client;

// Run this script using: php examples/ticket_details.php <YOUR-TOKEN>

require __DIR__.'/../vendor/autoload.php';

$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]);
$authentication = new PersonalAccessToken($argv[1]);

// Make an Exonet API client that connects to the test API.
$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL);
$exonetApi = new Client($authentication, Client::API_TEST_URL);

/*
* Get a single dns_zone resource. Because depending on who is authorized, the dns_zone IDs change, all dns_zones are
Expand Down
7 changes: 5 additions & 2 deletions examples/dns_zones.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<?php

use Exonet\Api\Auth\PersonalAccessToken;
use Exonet\Api\Client;

// Run this script using: php examples/dns_zones.php <YOUR-TOKEN>

require __DIR__.'/../vendor/autoload.php';

$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]);
$authentication = new PersonalAccessToken($argv[1]);

// Make an Exonet API client that connects to the test API.
$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL);
$exonetApi = new Client($authentication, Client::API_TEST_URL);

// Get all DNS zones, limited to 20.
$zones = $exonetApi->resource('dns_zones')->size(20)->get();
Expand Down
7 changes: 5 additions & 2 deletions examples/ticket_details.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<?php

use Exonet\Api\Auth\PersonalAccessToken;
use Exonet\Api\Client;

// Run this script using: php examples/ticket_details.php <YOUR-TOKEN>

require __DIR__.'/../vendor/autoload.php';

$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]);
$authentication = new PersonalAccessToken($argv[1]);

// Make an Exonet API client that connects to the test API.
$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL);
$exonetApi = new Client($authentication, Client::API_TEST_URL);

/*
* Get a single ticket resource. Because depending on who is authorized, the ticket IDs change, all tickets are
Expand Down
6 changes: 4 additions & 2 deletions examples/tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

// Run this script using: php examples/tickets.php <YOUR-TOKEN>

use Exonet\Api\Auth\PersonalAccessToken;
use Exonet\Api\Client;
use Exonet\Api\Structures\ApiResourceSet;

require __DIR__.'/../vendor/autoload.php';

$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]);
$authentication = new PersonalAccessToken($argv[1]);

// Make an Exonet API client that connects to the test API.
$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL);
$exonetApi = new Client($authentication, Client::API_TEST_URL);

// Show all tickets, limited to 10.
$allTickets = $exonetApi->resource('tickets')->size(10)->get();
Expand Down

0 comments on commit 0e8cdcc

Please sign in to comment.