We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
tritnguyen
3 years agoExplorer | Level 3
Refresh key does not work.
Hi,
I created a trial account with the Business Advance Account; this account was used to test the features of Dropbox for my team. I created an app and wrote a test program to collect user’s i...
- 3 years ago
That should be addressed in v5.4.4, per the release notes. Please give that a try and let us know if you run in to any issues. Thanks!
tritnguyen
3 years agoExplorer | Level 3
My email address for the Business Advance Account license is different than my email address for the trial account. Note that if I am using the same Refresh Key, I can get the users information but not the event log. This is the code:
static public void getLogEvents(DbxTeamTeamLogRequests teamLog)
{
GetTeamEventsResult eventRes = null;
try
{
eventRes = teamLog.getEvents(); //Connect and get events from DropBox server.
eventCursor = eventRes.getCursor();
}
catch (DbxException e1)
{
e1.printStackTrace();
}
while(true)
{
List<TeamEvent> events = eventRes.getEvents();
for(int i = 0; i < events.size(); i++)
{
TeamEvent event = events.get(i);
System.out.println(event.toStringMultiline());
}
if(eventRes.getHasMore())
{
try
{
eventRes = teamLog.getEventsContinue(eventCursor);
eventCursor = eventRes.getCursor();
}
catch (DbxException e)
{
e.printStackTrace();
}
}
else
{
break;
}
}
}
static public void getUsers(DbxTeamTeamRequests team)
{
try
{
MembersListResult memberList = team.membersList();
memberCursor = memberList.getCursor();
while(true)
{
List<TeamMemberInfo> members = memberList.getMembers();
for(int i = 0; i < members.size(); i++)
{
TeamMemberInfo member = members.get(i);
System.out.println(member.toStringMultiline());
}
if(memberList.getHasMore())
{
try{
memberList = team.membersListContinue(memberCursor);
memberCursor = memberList.getCursor();
}
catch (DbxException e){
e.printStackTrace();
}
}
else
{
break;
}
}
}
catch (DbxException e)
{
throw new RuntimeException(e);
}
}
public static void main(String args[]) throws IOException, DbxException {
DbxCredential credential;
Path path = Paths.get("C:\\tri\\proj\\features\\features\\outputKey.json");
byte[] data = Files.readAllBytes(path);
try
{
credential = DbxCredential.Reader.readFully(data);
}
catch (JsonReadException e)
{
throw new RuntimeException(e);
}
// Create a DbxTeamClientV2, which is what you use to make API calls.
DbxRequestConfig requestConfig = new DbxRequestConfig(CONFIG_NAME);
DbxTeamClientV2 dbxClient = new DbxTeamClientV2(requestConfig, credential);
DbxTeamTeamLogRequests teamLog = dbxClient.teamLog();
DbxTeamTeamRequests team = dbxClient.team();
MembersListResult memberList = team.membersList();
memberCursor = memberList.getCursor();
getUsers(team); //OK, returning correct users information.
getLogEvents(teamLog);
}
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!