Editorial Workflows

New Affiliate Link

public workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Generate new iTunes affiliate links using the new PHG affiliate system.
Checks the clipboard for a link and then suggests to make it an affiliate link from it and puts the link in your clipboard.
If you choose not to make an affiliate link out of it or if you don't have a link in the clipboard, you are asked if you want to get a link from Google.

Shared by: @devsl

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
aftoken
Value
Your Affiliate ID
Generate Text ?
Text
Clipboard
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Extract URLs ?
Output
  • Only URLs
  • URLs and Ranges (Separated by Tab)
No Link in the Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
://
Show Alert ?
Title
No URL in the Clipboard
Message
Do you want to get an app's link from Google?
Button 1
Yes
Output Value
y
Button 2
No
Output Value
Input
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Use Google ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
y
Request Text Input ?
Title
What is the app's name?
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
appname
Value
Input
Search Web ?
Search for
appname itunes
Show Alert ?
Title
Google Search Done
Message
Please rerun the workflow to make an affiliate link from the link in your clipboard.
Button 1
Ok, Bye
Output Value
Clipboard
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
…End If
Don't Google ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
y
Done! ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
Done!
…End If
…End If
Link in Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
://
Show Alert ?
Title
There's a URL in the Clipboard
Message
Do you want to use it as an affiliate link?
Button 1
Yes
Output Value
Input
Button 2
No
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Use Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
://
If ? ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
?
Prefix / Suffix Lines ?
  • Prefix
  • Suffix
Text
&at=aftoken
Set Clipboard ?
…End If
No ? ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
?
Prefix / Suffix Lines ?
  • Prefix
  • Suffix
Text
?at=aftoken
Set Clipboard ?
…End If
…End If
Don't Use Clipboard ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Show Alert ?
Title
Do you want to get an app's link from Google?
Message
Button 1
Yes
Output Value
y
Button 2
No
Output Value
n
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Use Google ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
y
Request Text Input ?
Title
What is the app's name?
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
appname
Value
Input
Search Web ?
Search for
appname itunes
Show Alert ?
Title
Google Search Done
Message
Please rerun the workflow to make an affiliate link from the link in your clipboard.
Button 1
Ok, Bye
Output Value
Clipboard
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
…End If
Don't Google ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
x
Done! ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
Done!
…End If
…End If
…End If