if (FALSE) {
# Authenticate and close session
auth <- ig_auth(
username = "your_username",
password = "your_password",
api_key = "your_api_key",
acc_type = "DEMO",
acc_number = "ABC123"
)
ig_close_session(auth)
# Using mock response for testing
ig_close_session(auth, mock_response = TRUE)
}
Run the code above in your browser using DataLab