NAME
App::wsgetmail::MS365::Client - Low-level client to the Microsoft Graph API
DESCRIPTION
This class performs the actual REST requests to support App::wsgetmail::MS365.
ATTRIBUTES
The following attributes are received from App::wsgetmail::MS365 and have the same meaning:
secret
client_id
tenant_id
username
user_password
global_access
debug
resource_url
A string with the URL for the overall API endpoint.
resource_path
A string with the REST API endpoint URL path.
METHODS
build_rest_uri(@endpoint_parts)
Given a list of URL component strings, returns a complete URL string to reach that endpoint from this object's resource_url
and resource_path
.
get_request($parts, $params)
Makes a GET request to the API. $parts
is an arrayref of URL endpoint strings with the specific endpoint to request. $params
is a hashref of query parameters to send with the request.
get_request_by_url($url)
Makes a GET request to the URL in the $url
string.
delete_request($parts, $params)
Makes a DELETE request to the API. $parts
is an arrayref of URL endpoint strings with the specific endpoint to request. $params
is unused.
post_request($path_parts, $post_data)
Makes a POST request to the API. $path_parts
is an arrayref of URL endpoint strings with the specific endpoint to request. $post_data
is a reference to an array or hash of data to include in the POST request body.
patch_request($path_parts, $patch_params)
Makes a PATCH request to the API. $path_parts
is an arrayref of URL endpoint strings with the specific endpoint to request. $patch_params
is a hashref of data to include in the PATCH request body.
SEE ALSO
AUTHOR
Best Practical Solutions, LLC <modules@bestpractical.com>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2020 by Best Practical Solutions, LLC
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991