This method will add a new project.
You call this method with the following URL:
Parameters are the data you will pass with the call.
Your secret identifier. You find your API Token under Account Overview in the Account section.
The description of the project.
The number of hours for the project.
Rules: Decimal time. Can only include numeric characters.
The rate for the project.
Rules: Can only include numeric characters. If you don't use this parameter, your default rate will be used instead. If parameter is used it must be set to "true". Otherwise it will be ignored.
If this parameter is set the result sent back will be the new project in XML data rather than the success message.
Rules: If parameter is used it must be set to "true". Otherwise it will be ignored.
This is the result that will be passed back to you when you have sent a call.
Sucess: Project added.
The project was successfully added.
If you have set the get parameter to "true" you will rather get the new project in XML sent back to you. Like this:
<?xml version="1.0" encoding="utf-8"?> <method request="project.get"> <project> <id>204618</id> <description>Web design</description> <hours>10</hours> <rate>100.00</rate> <total>1000.00</total> <status>Draft</status> </project> </method>
Error: No data passed.
No data was passed to the method.
Error: API Token is invalid.
The API Token parameter is missing or incorrectly entered.
Error: Description is invalid.
The Description is missing or incorrectly entered.
Error: Hours is invalid.
The Hours parameter is incorrectly entered.
Error: Rate is invalid.
The Rate parameter is incorrectly entered.
The example below is strictly a demonstration of the method and it's parameters. Methods should never be posted from a HTML form. They should be posted directly from your server script.
<form action="http://machine_id.invoicemachine.com/api/project.new" method="post"> <input type="hidden" name="api_token" value="c86cea54c71sbb05a5f8297bed641944"> <input type="hidden" name="description" value="Web design"> <input type="hidden" name="hours" value="10"> <input type="hidden" name="rate" value="100"> </form>
We're a small company located in the deep spruce forest of Sweden. We build useful web applications with focus on usability and user interface.
Copyright The Invoice Machine 2007-2017. All Rights Reserved.
The Invoice Machine is a service of Bombia AB (Inc).
"I've just signed up for The Invoice Machine and just had to tell you I'm absolutely blown away. In fact, I feel quite giddy after using it, I'm so impressed! Fast, slick, easy and intuitive."Read what our customers are saying