Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

buildAccountStatsRequest() doesn't work #20

Closed
@dimapasko

Description

@dimapasko

Hi

I'm using fullcontact4j
In following way:

    FullContact fullContact = FullContact.withApiKey(fullContactKey).build();
    AccountStatsRequest accountStatsRequest = fullContact.buildAccountStatsRequest().setPeriod(2015, 1).build();

where fullContactKey is correct API key

For
AccountStatsResponse accountStatsResponse = fullContact.sendRequest(accountStatsRequest);

I'm getting following error:

com.fullcontact.api.libs.fullcontact4j.FullContactException: Invalid period; YYYY-MM format expected
com.fullcontact.api.libs.fullcontact4j.http.FCRetrofitCallback.failure(FCRetrofitCallback.java:69)
at retrofit.CallbackRunnable$2.run(CallbackRunnable.java:53)
at retrofit.Utils$SynchronousExecutor.execute(Utils.java:114)
at retrofit.CallbackRunnable.run(CallbackRunnable.java:51)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at retrofit.Platform$Base$2$1.run(Platform.java:94)

In debbuger i found out that fullcontact4j actually calls https://api.fullcontact.com/v2/stats.json?period=2015-1 without apiKey

It seems that fullContact.buildAccountStatsRequest() doesn't work fine :(

Let me know if i missed something.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions