Boostr Java SDK client library to interact with boostr.com
Import the library to your project using jitpack repository
- Add the JitPack repository to your build file
repositories {
...
maven { url 'https://jitpack.io' }
}
- Add the boostr-java-sdk library dependency
implementation 'com.github.galimru:boostr-java-sdk:1.0.0'
Note: The JitPack supports both Gradle/Maven build tools, please refer to jitpack documentation if you want use Maven
// create api client for sandbox environment
Credentials credentials = Credentials.of("<YOUR_USERNAME>", "<YOUR_PASSWORD>");
BoostrClient client = BoostrClient.create(credentials, true);
// get list of all deals
List<DealResponse> deals = client.deals().list();
// extract deal id from a deal
Integer dealId = deals.get(0).getId();
// update deal name by deal id
Deal deal = new Deal();
deal.setName("Changed Deal Name");
client.deals().update(dealId, deal);
Apache 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, either express or implied. See the License for the specific language governing permissions and limitations under the License.