Skip to content

Commit

Permalink
Merge pull request #190 from Azure-Samples/pafarley-updates
Browse files Browse the repository at this point in the history
add new qs code
  • Loading branch information
PatrickFarley authored Dec 8, 2020
2 parents cd647ff + cc49424 commit 46f4efd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions curl/content-moderator/quickstart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# <imagemod>
curl -v -X POST "https://westus.api.cognitive.microsoft.com/contentmoderator/moderate/v1.0/ProcessImage/Evaluate?CacheImage={boolean}"
-H "Content-Type: application/json"
-H "Ocp-Apim-Subscription-Key: {subscription key}"
--data-ascii "{\"DataRepresentation\":\"URL\", \"Value\":\"https://moderatorsampleimages.blob.core.windows.net/samples/sample.jpg\"}"
# </imagemod>

# <textmod>
curl -v -X POST "https://westus.api.cognitive.microsoft.com/contentmoderator/moderate/v1.0/ProcessText/Screen?autocorrect=True&PII=True&classify=True&language={string}"
-H "Content-Type: text/plain"
-H "Ocp-Apim-Subscription-Key: {subscription key}"
--data-ascii "Is this a crap email [email protected], phone: 6657789887, IP: 255.255.255.255, 1 Microsoft Way, Redmond, WA 98052"
# </textmod>

0 comments on commit 46f4efd

Please sign in to comment.