Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Connect

Lucas Garcia edited this page Sep 5, 2018 · 4 revisions

Introduction

TO DO

Dependencies

import static br.com.moip.helpers.PayloadFactory.payloadFactory;
import static br.com.moip.helpers.PayloadFactory.value;

Features

Index

Ask for OAuth authorization

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);

Generate Access Token

Map<String, Object> response = Moip.API.connect().generateAccessToken("", setup);

Refresh Access Token

Map<String, Object> response = Moip.API.connect().refreshAccessToken("", setup);
Clone this wiki locally