Skip to content

Instantly share code, notes, and snippets.

@junojisan
Last active August 29, 2015 14:04
Show Gist options
  • Save junojisan/7525c79936b7c140284d to your computer and use it in GitHub Desktop.
Save junojisan/7525c79936b7c140284d to your computer and use it in GitHub Desktop.
public with sharing class OAuthCallbackController {
// OAuthModel
public OAuthModel oauthModel {get; set;}
// Salesforceからのレスポンスを保持する
public String resBody {get; set;}
// 取引先を保持するリスト
public List<Account> accounts {get; set;}
// Salesforceから戻されるアクセストークンなどの情報を保持する内部クラス
public class OAuthModel {
public String id {get; set;}
public String issued_at {get; set;}
public String refresh_token {get; set;}
public String instance_url {get; set;}
public String signature {get; set;}
public String access_token {get; set;}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment