@olavarriaga/n8n-nodes-myfitnesspal
Version:
MyFitnessPal integration node for n8n
49 lines • 1.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyFitnessPalApi = void 0;
class MyFitnessPalApi {
constructor() {
this.name = 'myFitnessPalApi';
this.displayName = 'MyFitnessPal API';
this.documentationUrl = 'https://myfitnesspalapi.com/docs/';
this.properties = [
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
required: true,
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'Authorization': '=Bearer {{$credentials.accessToken}}',
},
},
};
}
}
exports.MyFitnessPalApi = MyFitnessPalApi;
//# sourceMappingURL=MyFitnessPalApi.credentials.js.map