This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Connect
Lucas Garcia edited this page Sep 5, 2018
·
4 revisions
TO DO
import static br.com.moip.helpers.PayloadFactory.payloadFactory;
import static br.com.moip.helpers.PayloadFactory.value;
String[] scopes = {"TRANSFER_FUNDS", "RECEIVE_FUNDS"};
String url = Moip.API.connect().buildUrl("APP-DVLJHW59IKOS", "http://www.exemplo.com.br/retorno", scopes, setup);
System.out.println(url);
Map<String, Object> response = Moip.API.connect().generateAccessToken("", setup);
Map<String, Object> response = Moip.API.connect().refreshAccessToken("", setup);