Skip to content

Commit

Permalink
Temboo: library and examples update
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Fissore committed Apr 3, 2014
1 parent 6e9f6c4 commit 2917334
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
8 changes: 5 additions & 3 deletions library.properties
@@ -1,8 +1,10 @@
name=Temboo
version=1.0
author=Temboo
maintainer=Temboo <support@temboo.com>
email=support@temboo.com
sentence=This library enables calls to Temboo, a platform that connects the Yun to 100+ APIs.
paragraph=Temboo is a platform that provides normalized access to 100+ APIs, databases, code utilities and more. This library enables the Yun to connect to Temboo, making it simple to interact with a vast array of web-based resources and services.
url=http://www.temboo.com
architectures=*
architectures=avr
version=1.0
dependencies=
core-dependencies=arduino (>=1.5.0)
26 changes: 13 additions & 13 deletions src/Temboo.cpp
Expand Up @@ -4,13 +4,13 @@
# Temboo Arduino Yun library
#
# Copyright 2013, Temboo Inc.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
Expand All @@ -23,42 +23,42 @@
#include <Temboo.h>

void TembooChoreo::begin() {
Process::begin("temboo");
Process::begin("temboo");
}

void TembooChoreo::setAccountName(const String& accountName) {
addParameter("-a" + accountName);
addParameter("-a" + accountName);
}

void TembooChoreo::setAppKeyName(const String& appKeyName) {
addParameter("-u" + appKeyName);
addParameter("-u" + appKeyName);
}

void TembooChoreo::setAppKey(const String& appKey) {
addParameter("-p" + appKey);
addParameter("-p" + appKey);
}

void TembooChoreo::setChoreo(const String& choreo) {
addParameter("-c" + choreo);
addParameter("-c" + choreo);
}

void TembooChoreo::setCredential(const String& credentialName) {
addParameter("-e" + credentialName);
addParameter("-e" + credentialName);
}

void TembooChoreo::addInput(const String& inputName, const String& inputValue) {
addParameter("-i" + inputName + ":" + inputValue);
addParameter("-i" + inputName + ":" + inputValue);
}

void TembooChoreo::addOutputFilter(const String& outputName, const String& filterPath, const String& variableName) {
addParameter("-o" + outputName + ":" + filterPath + ":" + variableName);
addParameter("-o" + outputName + ":" + filterPath + ":" + variableName);
}

void TembooChoreo::setSettingsFileToWrite(const String& filePath) {
addParameter("-w" + filePath);
addParameter("-w" + filePath);
}

void TembooChoreo::setSettingsFileToRead(const String& filePath) {
addParameter("-r" + filePath);
addParameter("-r" + filePath);
}

30 changes: 15 additions & 15 deletions src/Temboo.h
Expand Up @@ -4,13 +4,13 @@
# Temboo Arduino Yun library
#
# Copyright 2013, Temboo Inc.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
Expand All @@ -27,18 +27,18 @@

class TembooChoreo : public Process {

public:
void begin();
void setAccountName(const String& accountName);
void setAppKeyName(const String& appKeyName);
void setAppKey(const String& appKey);
void setChoreo(const String& choreo);
void setCredential(const String& credentialName);
void addInput(const String& inputName, const String& inputValue);
void addOutputFilter(const String& filterName, const String& filterPath, const String& variableName);
void setSettingsFileToWrite(const String& filePath);
void setSettingsFileToRead(const String& filePath);
public:
void begin();
void setAccountName(const String& accountName);
void setAppKeyName(const String& appKeyName);
void setAppKey(const String& appKey);
void setChoreo(const String& choreo);
void setCredential(const String& credentialName);
void addInput(const String& inputName, const String& inputValue);
void addOutputFilter(const String& filterName, const String& filterPath, const String& variableName);
void setSettingsFileToWrite(const String& filePath);
void setSettingsFileToRead(const String& filePath);

};

#endif
#endif

0 comments on commit 2917334

Please sign in to comment.