Skip to main content

fonts.com
  • Hi there. Sign In
  • Need help?Support
  • 0
    Your CartEmpty
All
  • All
  • Desktop
  • Digital Ad
  • eBook
  • App
  • Server
  • Monotype Library
  • Articles
  • Browse
  • Font Lists
  • Deals
  • Learning
  • Web Fonts
  • Monotype Library Subscription
  • Shop MyFonts.com
    LOOKING FOR MORE GREAT TYPE?

    Find the same inventory offered here (and more!) over at our partner storefront, MyFonts.com. With over 130,000 fonts available to license for any project, MyFonts is the largest font marketplace around. Check it out!

fonts.com

0
All
  • Main Menu

  • Browse
  • Font Lists
  • Deals
  • Learning
  • Web Font Subscription
  • Monotype Library Subscription
  • Shop MyFonts.com
  • Support

  • Need Support?
  • Sign in
  • Become A Member
  • Facebook
  • Twitter
  • Google+
  • Email
All
  • Home
  • Web Fonts
  • Developers
  • Selectors: Assign Fonts to Selectors

Selectors: Assign Fonts to Selectors

URL

http://api.fonts.com/rest/{format}/Selectors/

{format}

xml or json

Method

PUT

Required Header Parameters

  • authorization
    Hashed authorization key
  • appkey
    Your application’s key

Required Query String Parameters

  • wfspid
    The project id

Optional Query String Parameters

  • wfsnopublish
    This command automatically calls Publish once it is complete, which takes multiple seconds. To prevent this, use this parameter, set it to 1, and use Publish after all changes are made.
  • wfspstart
    starting record requested (zero-based)
  • wfsplimit
    # of records requested

Required Data Parameters

  • wfsselector_ids
    Ids of already available selectors under project
  • wfsfont_ids
    Ids of already available fonts under project.

Response variables

  • MessageIf the response is successful then the “message” parameter of the response will be “Success” and if there is some error or failure then the “message” parameter will be the error message.
  • Selector: SelectorID
    The unique identifier for the selector
  • Selector: SelectorTag
    The selector - CSS attribute, ID, class, etc.
  • Selector: SelectorFontID
    The font ID assigned to the selector.
  • TotalRecords
    Total number of records
  • PageStart
    starting record requested (zero-based)
  • PageLimit
    # of records requested

XML Response

<Selectors>
  <ProjectID>7bff9927-7964-4f6f-a132-adcae35ad51f</ProjectID>
  <Message>Success</Message>
  <Selector>
    <SelectorID>3ff4c957-65fd-428d-a53b-3892da0b1960</SelectorID>
    <SelectorTag>h1</SelectorTag>
    <SelectorFontID>691782</SelectorFontID>
  </Selector>
  <TotalRecords>1</TotalRecords>
  <PageStart>0</PageStart>
  <PageLimit>10</PageLimit>
</Selectors>
    

json Response

{
   "Selectors":{
      "Message":"Success",
      "PageLimit":"10",
      "PageStart":"0",
      "ProjectID":"7bff9927-7964-4f6f-a132-adcae35ad51f",
      "Selector":{
         "SelectorFontID":"691782",
         "SelectorID":"3ff4c957-65fd-428d-a53b-3892da0b1960",
         "SelectorTag":"h1"
      },
      "TotalRecords":"1"
   }
}
    

Integration Support

  • Authorization Parameter
  • Publishing
  • Importing Stylesheets
  • Filtering Font Lists

Account

  • Create Account
  • Get Token
  • Generate Token

Domains

  • List Domains
  • Add Domain
  • Delete Domain
  • Edit Domain

Filters

  • List Filters

Filter Values

  • List Filter Values
  • List All Filter Values

Fonts

  • List Fonts
  • List Project Fonts
  • Add Font
  • Delete Font

Projects

  • List Projects
  • Add Project
  • Delete Project
  • Edit Project

Publish

  • Publish

Selectors

  • List Selectors
  • Add Selector
  • Assign Fonts To Selectors
  • Delete Selector

Stylesheet

  • Export Stylesheet
  • Import Stylesheet
  • Add Stylesheet

 

free web fonts
Past Newsletters

Find Your Type

  • About
  • Blog
  • Font Tools
  • Services
  • Submit Fonts
  • Affiliate Program
  • Support
  • Contact
  • Language
    • English
    • Deutsch
    • 日本語
  • Monotype
  • Legal
  • Sitemap
  • Font Index
    • Facebook
    • Twitter
    • Google+
    • Dribbble