• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Bynder / bynder-java-sdk / 7011534548

27 Nov 2023 10:39PM UTC coverage: 45.356%. First build
7011534548

push

github

ahongbynder
API-1822 setup sample files for java sdk api calls

0 of 76 new or added lines in 4 files covered. (0.0%)

708 of 1561 relevant lines covered (45.36%)

0.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/bynder/sdk/sample/TagsSample.java
1
package com.bynder.sdk.sample;
2

3
import com.bynder.sdk.configuration.Configuration;
4
import com.bynder.sdk.model.Tag;
5
import com.bynder.sdk.service.BynderClient;
6
import com.bynder.sdk.service.asset.AssetService;
7
import com.bynder.sdk.util.Utils;
8

9
import java.io.IOException;
10
import java.net.URISyntaxException;
11
import java.net.URL;
12

13
import java.util.List;
14
import java.util.Map;
15
import java.util.Properties;
16

17
import org.slf4j.Logger;
18
import org.slf4j.LoggerFactory;
19

NEW
20
public class TagsSample {
×
NEW
21
    private static final Logger LOG = LoggerFactory.getLogger(TagsSample.class);
×
22

23
    public static void main(final String[] args) throws URISyntaxException, IOException {
24
        /**
25
         * Loads app.properties file under src/main/resources
26
         */
NEW
27
        Properties appProperties = Utils.loadConfig("app");
×
28

29
        // Initialize BynderClient with a permanent token
NEW
30
        BynderClient client = BynderClient.Builder.create(
×
NEW
31
                new Configuration.Builder(new URL(appProperties.getProperty("BASE_URL")))
×
NEW
32
                        .setPermanentToken(appProperties.getProperty("PERMANENT_TOKEN")).build());
×
33

NEW
34
        AssetService assetService = client.getAssetService();
×
35

36
        // get tags
NEW
37
        List<Tag> assetTags = assetService.getTags().blockingSingle().body();
×
NEW
38
        for (Tag assetTag : assetTags) {
×
NEW
39
            LOG.info(assetTag.getId());
×
NEW
40
            LOG.info(assetTag.getTag());
×
NEW
41
        }
×
NEW
42
    }
×
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc