Skip to content

Latest commit

 

History

History
122 lines (82 loc) · 3.67 KB

CompanyaltinnApi.md

File metadata and controls

122 lines (82 loc) · 3.67 KB

Tripletex\CompanyaltinnApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
put PUT /company/settings/altinn [BETA] Update AltInn id and password.
search GET /company/settings/altinn [BETA] Find Altinn id for login in company.

put

\Tripletex\Model\ResponseWrapperAltinnCompanyModule put($body)

[BETA] Update AltInn id and password.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\CompanyaltinnApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$body = new \Tripletex\Model\AltinnCompanyModule(); // \Tripletex\Model\AltinnCompanyModule | Partial object describing what should be updated

try {
    $result = $apiInstance->put($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyaltinnApi->put: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
body \Tripletex\Model\AltinnCompanyModule Partial object describing what should be updated [optional]

Return type

\Tripletex\Model\ResponseWrapperAltinnCompanyModule

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

search

\Tripletex\Model\ResponseWrapperAltinnCompanyModule search($fields)

[BETA] Find Altinn id for login in company.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\CompanyaltinnApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->search($fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CompanyaltinnApi->search: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ResponseWrapperAltinnCompanyModule

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]