
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
The documentation for AppsFlyer's Server-to-server events API for mobile can be found here.
Install using pip
:
pip install appsflyer
Alternatively, you may download the repository and run the installation directly:
git clone https://github.com/fredericojordan/appsflyer-python.git
cd appsflyer-python
python setup.py install
To start generating events, we need only a Client
instance.
The Client
needs your AppsFlyer credentials. You can pass these directly to the constructor:
from appsflyer.rest import Client
app_id = "XXXXXXXXXXXXXXXXX"
dev_key = "YYYYYYYYYYYYYYYY"
appsflyer_client = Client(app_id=app_id, dev_key=dev_key)
app_id
: The app identifier used in the AppsFlyer dashboard. Insert it precisely as it appears on the dashboard.dev_key
: The authentication token in the header. To get the dev key, in the AppsFlyer dashboard go to: App Settings > Dev KeyTo generate an event, simply call Client.generate_event()
with keyword arguments:
from appsflyer.rest import Client
app_id = "XXXXXXXXXXXXXXXXX"
dev_key = "YYYYYYYYYYYYYYYY"
appsflyer_client = Client(app_id=app_id, dev_key=dev_key)
appsflyer_client.generate_event(
appsflyer_id="9999999999999-9999999999999999999",
customer_user_id="example_customer_id_123",
ip="199.0.2.1",
app_version_name="example_version_name",
event_time="2020-02-25 12:00.000",
event_name="af_purchase",
event_currency="ZAR",
event_value={
"af_revenue": "1006",
"af_content_type": "wallets",
"af_content_id": "15854",
"af_quantity": "1",
},
)
The parameters event_name
, event_value
and appsflyer_id
are mandatory.
Additional data parameters (such as an IDFA or GAID identifiers) may be sent as keyword arguments:
appsflyer_client.generate_event(
appsflyer_id="9999999999999-9999999999999999999",
event_name="af_purchase",
event_value={"af_revenue": "420"},
idfa="9876F1SS-2983-3855-27RR-2R626772VFNB",
)
AppsFlyer API expects one or more of the following device identifiers:
idfa
idfv
advertising_id
(GAID)oaid
amazon_aid
imei
FAQs
AppsFlyer S2S events API client
We found that appsflyer 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.