All URIs are relative to https://dev.to/api.
Method | HTTP request | Description |
---|---|---|
getProfileImage() | GET /profile_images/{username} | User or organization profile picture |
getProfileImage($username): \Bitween\DevTo\Model\ProfileImage
User or organization profile picture
This endpoint allows the client to retrieve a user or organization profile image information by its corresponding username
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Bitween\DevTo\Api\ProfileImagesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$username = diogoosorio; // string | Username of the user or organization
try {
$result = $apiInstance->getProfileImage($username);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfileImagesApi->getProfileImage: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
username | string | Username of the user or organization |
\Bitween\DevTo\Model\ProfileImage
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]