Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
The GraphAPI class is a Python wrapper for interacting with the Microsoft Graph API, providing simplified access to Microsoft services such as Office 365, OneDrive, and Outlook. It abstracts away the complexity of authentication and API calls, allowing developers to easily perform actions like retrieving user information, accessing email messages, uploading and downloading files, creating folders, and more.
pip install -r requirements.txt
.GraphAPI
class into your Python project.GraphAPI
class with your Azure AD app credentials and user ID.from graphapi import GraphAPI
# Create an instance of the GraphAPI class
api = GraphAPI(appid, client_secret, tenant_id, userid)
# Retrieve user information
api.get_information()
# Access email messages
mail = api.get_mail()
# Upload a file to OneDrive
api.upload_to_onedrive('file.txt', '/path/to/folder', access_token)
# Download a file from OneDrive
api.download_file('file.txt', '/path/to/folder', 'destination.txt')
# Create a folder in OneDrive
api.create_folder('new_folder')
# Search for files
search_results = api.search_for_file('keyword')
# Delete a file or folder
api.delete_file('file.txt', '/path/to/folder')
# Generate a share link for a file
share_link = api.create_share_link('file.txt', '/path/to/folder')
# Download Filename from OneDrive
download_by_filename('foo.txt')
Contributions are welcome!
This project is licensed under the MIT License.
FAQs
A Python package to interact with the Microsoft Graph API
We found that MicrosoftGraphAPI demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.