Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Latest commit

 

History

History
112 lines (72 loc) · 2.69 KB

File metadata and controls

112 lines (72 loc) · 2.69 KB

FreeeAccountingClient.TagsApi

All URIs are relative to https://api.freee.co.jp/api/1

Method HTTP request Description
createTag POST /tags メモタグの作成
getTags GET /tags メモタグ一覧の取得

createTag

TagsCreateResponse createTag(parameters)

メモタグの作成

Example

var FreeeAccountingClient = require('freee-accounting-client');
var defaultClient = FreeeAccountingClient.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = accessToken; // assign access token here.

var apiInstance = new FreeeAccountingClient.TagsApi();

var parameters = new FreeeAccountingClient.Parameters(); // Parameters | メモタグの作成


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.createTag(parameters, callback);

Parameters

Name Type Description Notes
parameters Parameters メモタグの作成

Return type

TagsCreateResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

getTags

TagsIndexResponse getTags(companyId)

メモタグ一覧の取得

Example

var FreeeAccountingClient = require('freee-accounting-client');
var defaultClient = FreeeAccountingClient.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = accessToken; // assign access token here.

var apiInstance = new FreeeAccountingClient.TagsApi();

var companyId = 56; // Number | 事業所ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getTags(companyId, callback);

Parameters

Name Type Description Notes
companyId Number 事業所ID

Return type

TagsIndexResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json