Skip to content

Commit

Permalink
- Add missing Java code snippet (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 authored Jan 25, 2024
1 parent b83bc05 commit a848eec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions official/docs/java/current/child-users/list.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package users;

import com.easypost.exception.EasyPostException;
import com.easypost.model.ChildUserCollection;
import com.easypost.service.EasyPostClient;

import java.util.HashMap;

public class AllChildren {
public static void main(String[] args) throws EasyPostException {
EasyPostClient client = new EasyPostClient(System.getenv("EASYPOST_API_KEY"));

HashMap<String, Object> params = new HashMap<>();

params.put("page_size", 5);

ChildUserCollection childUsers = client.users.allChildren(params);

System.out.println(childUsers);
}
}

0 comments on commit a848eec

Please sign in to comment.