The SmugMug API provides programmatic access to a user's SmugMug account, allowing them to manage photos, albums, and account settings. With Pipedream, you can automate tasks such as uploading new images, synchronizing photo galleries with other platforms, or triggering actions based on account activity. The API's capabilities paired with Pipedream's serverless platform enable you to craft custom workflows that react to events in SmugMug or orchestrate tasks across multiple apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smugmug: {
type: "app",
app: "smugmug",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smugmug.com/api/v2!authuser`,
headers: {
"Accept": `application/json`,
},
}, {
token: {
key: this.smugmug.$auth.oauth_access_token,
secret: this.smugmug.$auth.oauth_refresh_token,
},
oauthSignerUri: this.smugmug.$auth.oauth_signer_uri,
})
},
})
Automated Photo Backup: Whenever a new photo is added to a SmugMug album, trigger a Pipedream workflow that backs up the image to a cloud storage service like Google Drive or Dropbox. This ensures that you have redundant copies of your precious memories or professional shots.
Social Media Integration: Create a workflow that posts your latest SmugMug photos to social media platforms automatically. For instance, when you upload a new photo to a designated "Public" album in SmugMug, Pipedream can share that photo to your Facebook Page or Twitter account, helping you maintain an active social media presence without manual effort.
Website Gallery Sync: If you manage a personal or business website, use Pipedream to synchronize SmugMug albums with your site's gallery. Set up a webhook in Pipedream that listens for new SmugMug events and updates your website's photo gallery in real-time, ensuring visitors always see the latest content without manual updating.
Gets details of the authenticated user. See the docs here
Gets an image. An image is a photo or video stored on SmugMug. See the docs here
Gets a user profile. A user profile is the data provided by a user to establish that user's public presence. This may include social networking links, biographical text, and bio and cover images. See the docs here
SmugMug uses OAuth authentication. When you connect your SmugMug account, Pipedream will open a popup window where you can sign into SmugMug and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any SmugMug API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.smugmug.com/services/oauth/1.0a/getRequestToken
?
oauth_callback=https://api.pipedream.com/connect/oauth/oa_GqkiPB/callback
GET
https://api.smugmug.com/services/oauth/1.0a/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
oauth_token={{oauth.token}}
&
oauth_callback=https://api.pipedream.com/connect/oauth/oa_GqkiPB/callback
&
Access=Full
&
Permissions=Modify
POST
https://api.smugmug.com/services/oauth/1.0a/getAccessToken
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}