Get List (GetList)
Get List of CompositionsMethod Url
https://client.livedesignerfusion.com/{username}/Compositions/GetList?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
StartIndex | int | 0 | false | Starting Index of the Composition List. |
RecordCount | int | 100 | false | Maximum number of compositions in the retuned list (List Size). maximum allowed value is 200. |
Tags | string | false | Comma separated list of tags. This list will apply search filter as "and" condition. if this parameter is passed as "embroidery,melco" then composition list return only compositions having both tags associated. | |
SearchText | string | false | Search Text. This will search parameter text in composition name. | |
Format | string | xml | false | output format. available format's XML,json,jsonp |
Output / Result
Expected Response |
---|
{ "success": "true", "count": 2, "list": [ { "referenceid": "C001775", "name": "ABC", "tags": [], "image_100x100": "http://assets.livedesignerfusion.com/4756b82f15afcd4459c8d367bec4c46cfdf.png", "auto_save": false }, { "referenceid": "C001762", "name": "OnlyWhenBigger", "tags": [], "image_100x100": "http://assets.livedesignerfusion.com/7254248cf3e2f2d4fbbafaab233835fa9e9.png", "auto_save": false } ] } |
Error Response |
---|
{ "success" : "false", "error_code" : "MISSING_PARAMETER", "error_message" : "Detailed error message" } |
Properties
Name | Type | Description |
---|---|---|
success | string | Possible values "true", "false". Return true if successfully executed and return false if failed to execute. |
count | int | Total number of compositions available based on the applied filters/parameters. |
list | array/list | Array / List of compositions. See object for more details |
list
Name | Type | Description |
---|---|---|
referenceid | string | This is unique identifier for design and required to access the any information about this composition. |
name | string | Composition name |
tags | array/xmlnode | Array / List of tags associated with the composition. |
image_100x100 | url/string | url path to get the composition thumbnail. |
auto_save | url/string | url path to get the design thumbnail. |
Expected Response |
---|
<Response> <Success>true</Success> <Count>2</Count> <List> <Composition> <ReferenceID>C001775</ReferenceID> <Name>ABC</Name> <Tags /> <Image100X100>http://assets.livedesignerfusion.com/4756b82f15afcd4459c8d367bec4c46cfdf.png</Image100X100> <AutoSave>false</AutoSave> </Composition> <Composition> <ReferenceID>C001762</ReferenceID> <Name>OnlyWhenBigger</Name> <Tags /> <Image100X100>http://assets.livedesignerfusion.com/7254248cf3e2f2d4fbbafaab233835fa9e9.png</Image100X100> <AutoSave>false</AutoSave> </Composition> </List> </Response> |
Error Response |
---|
<Response> <Success>false</Success> <ErrorCode>MISSING_PARAMETER</ErrorCode> <ErrorMessage>Detailed error message</ErrorMessage> </Response> |
Properties
Name | Type | Description |
---|---|---|
Success | string | Possible values "true", "false". Return true if successfully executed and return false if failed to execute. |
Count | int | Total number of compositions available based on the applied filters/parameters. |
List | array/list | Array / List of compositions. See object for more details |
List
Name | Type | Description |
---|---|---|
ReferenceID | string | This is unique identifier for design and required to access the any information about this composition. |
Name | string | Composition name |
Tags | array/xmlnode | Array / List of tags associated with the composition. |
Image100X100 | url/string | url path to get the composition thumbnail. |
AutoSave | url/string | url path to get the design thumbnail. |
Get Definition (GetDefinition)
Return the composition meta data.
Get Definition (GetDefinition)
Method Url
https://client.livedesignerfusion.com/{username}/Compositions/GetDefinition?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
ReferenceID | string | true | Composition unique identifier. | |
FullObject | boolean | true | false | return full defintion of composition. Full Object will include all the child elements also. |
Format | string | xml | false | output format (xml.json,jsonp). |
Output / Result
Expected Response |
---|
{ "success": "true", "definition": { "referenceid": "C001799", "name": "COMP Test", "tags": [], "preview": "", "elements": [ { "elementid": 3834, "name": "Design 1", "element_type": "StaticDesign", "design_referenceid": "D000161", "design_name": "2x2" }, { "elementid": 3832, "name": "Text 1", "element_type": "Lettering", "lettering_params": { "character_height": 254, "show_font_collection": true, "show_color_collection": true, "fontcollection_referenceid": "1", "default_font_referenceid": "F00054", "colorcollection_referenceid": "48", "default_color_referenceid": "FF00E100014", "arc_radius": 762, "arc_ccw": false, "monogram": false, "monogram_height1": 190, "monogram_height2": 292, "monogram_height3": 190, "text_list": [ { "show_prompt": true, "prompt": "Enter Your First Name", "text": "TEXT", "show_text_input": true, "show_character_limit": true, "character_limit": 10 }, { "show_prompt": true, "prompt": "Enter Your Last Name", "text": "TEXT", "show_text_input": true, "show_character_limit": true, "character_limit": 10 } ], "show_justifictaion": true } }, { "elementid": 3833, "name": "SelectableDesign 1", "element_type": "SelectableDesign", "design_params": { "show_design_collection": true, "designcollection_referenceid": "DC0021", "designcollection_name": "ABC", "show_prompt": true, "prompt": "Select Design", "default_design_referenceid": "D000169", "enable_user_uploaded": false, "show_user_uploaded_propmt": true, "user_uploaded_propmt": "Upload Design", "design_area_width": 1029, "design_area_height": 1016, "scale_to_fit": "Always" } } ] } } |
Error Response |
---|
{ "success" : "false", "error_code" : "MISSING_PARAMETER", "error_message" : "Detailed error message" } |
Properties
Name | Type | Description |
---|---|---|
success | string | Possible values "true", "false". Return true if successfully executed and return false if failed to execute. |
definition | array/list | Array / List of compositions. See object for more details |
definition
Name | Type | Description |
---|---|---|
referenceid | string | This is unique identifier for design and required to access the any information about this composition. |
name | string | Composition name |
tags | array/xmlnode | Array / List of tags associated with the composition. |
preview | url/string | url path to get the composition image. |
Expected Response |
---|
<Response> <Success>true</Success> <Definition> <ReferenceID>C001799</ReferenceID> <Name>COMP Test</Name> <Tags /> <Preview></Preview> <Elements> <Element> <ElementID>3834</ElementID> <Name>Design 1</Name> <ElementType>StaticDesign</ElementType> <DesignReferenceID>D000161</DesignReferenceID> <DesignName>2x2</DesignName> </Element> <Element> <ElementID>3832</ElementID> <Name>Text 1</Name> <ElementType>Lettering</ElementType> <LetteringParams> <CharacterHeight>254</CharacterHeight> <ShowFontCollection>true</ShowFontCollection> <ShowColorCollection>true</ShowColorCollection> <FontCollectionReferenceID>1</FontCollectionReferenceID> <DefaultFontReferenceID>F00054</DefaultFontReferenceID> <ColorcollectionReferenceID>48</ColorcollectionReferenceID> <DefaultColorReferenceID>FF00E100014</DefaultColorReferenceID> <ArcRadius>762.000</ArcRadius> <ArcCcw>false</ArcCcw> <Monogram>false</Monogram> <MonogramHeight1>190</MonogramHeight1> <MonogramHeight2>292</MonogramHeight2> <MonogramHeight3>190</MonogramHeight3> <TextList> <Text> <ShowPrompt>true</ShowPrompt> <Prompt>Enter Your First Name</Prompt> <Text>TEXT</Text> <ShowTextInput>true</ShowTextInput> <ShowCharacterLimit>true</ShowCharacterLimit> <CharacterLimit>10</CharacterLimit> </Text> <Text> <ShowPrompt>true</ShowPrompt> <Prompt>Enter Your Last Name</Prompt> <Text>TEXT</Text> <ShowTextInput>true</ShowTextInput> <ShowCharacterLimit>true</ShowCharacterLimit> <CharacterLimit>10</CharacterLimit> </Text> </TextList> <ShowJustification>true</ShowJustification> </LetteringParams> </Element> <Element> <ElementID>3833</ElementID> <Name>SelectableDesign 1</Name> <ElementType>SelectableDesign</ElementType> <DesignParams> <ShowDesignCollection>true</ShowDesignCollection> <DesignCollectionReferenceID>DC0021</DesignCollectionReferenceID> <DesignCollectionName>ABC</DesignCollectionName> <ShowPrompt>true</ShowPrompt> <Prompt>Select Design</Prompt> <DefaultDesignReferenceID>D000169</DefaultDesignReferenceID> <EnableUserUploaded>false</EnableUserUploaded> <ShowUserUploadedPropmt>true</ShowUserUploadedPropmt> <UserUploadedPropmt>Upload Design</UserUploadedPropmt> <DesignAreaWidth>1029</DesignAreaWidth> <DesignAreaHeight>1016</DesignAreaHeight> <ScaleToFit>Always</ScaleToFit> </DesignParams> </Element> </Elements> </Definition> </Response> |
Error Response |
---|
<Response> <Success>false</Success> <ErrorCode>MISSING_PARAMETER</ErrorCode> <ErrorMessage>Detailed error message</ErrorMessage> </Response> |
Properties
Name | Type | Description |
---|---|---|
Success | string | Possible values "true", "false". Return true if successfully executed and return false if failed to execute. |
Definition | array/list | Array / List of compositions. See object for more details |
Definition
Name | Type | Description |
---|---|---|
ReferenceID | string | This is unique identifier for design and required to access the any information about this composition. |
Name | string | Composition name |
Tags | array/xmlnode | Array / List of tags associated with the composition. |
Preview | url/string | url path to get the composition image. |
Get Image (GetImage)
Return the Composition Image.
Get Image (GetImage)
Method Url
https://client.livedesignerfusion.com/{username}/Compositions/GetImage?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
ReferenceID | string | true | Composition Unique identifier. | |
dpi | int | 96 | false | Image resolution. |
Width | int | 100 | false | Requested Image Width. |
Height | int | 100 | false | Requested Image Height. |
E.ElementID.Text or E.ElementName.Text.ElementID.TextorE.ElementName.Text | string | false | Change Composition element text.This is applicable for only Lettering Elements(element type is lettering). Pass query string variable E.ElementID.Text or E.ElementName.Text (Refer Composition->GetDefinition for ElementID/ElementName) | |
E.ElementID.Color or E.ElementName.Color.ElementID.ColororE.ElementName.Color | string | false | Change Composition element color.This is applicable for only Lettering Elements(element type is lettering). Pass query string variable E.ElementID.Color or E.ElementName.Color (Refer Composition->GetDefinition for ElementID/ElementName). Any RGB value is valid for this parameter. Url Encode values before passing. | |
E.ElementID.Font or E.ElementName.Font.ElementID.FontorE.ElementName.Font | string | false | It supports Font and Alphabet query string varaibles. Change Composition element font/alphabet.This is applicable for only Lettering Elements(element type is lettering). Pass query string variable E.ElementID.Font or E.ElementName.Font or E.ElementID.Alphabet or E.ElementName.Alphabet (Refer Composition->GetDefinition for ElementID/ElementName). This value needs to be valid font ReferenceID from the associated font collection. |
Output / Result
Get File (GetFile)
Returns the Composition file.
Get File (GetFile)
Method Url
https://client.livedesignerfusion.com/{username}/Compositions/GetFile?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
ReferenceID | string | true | Unique identifier for the composition you want to download. | |
FileName | string | true | Output file name. | |
E.ElementID.Text or E.ElementName.Text.ElementID.TextorE.ElementName.Text | string | false | Change Composition element text.This is applicable for only Lettering Elements(element type is lettering). Pass query string variable E.ElementID.Text or E.ElementName.Text (Refer Composition->GetDefinition for ElementID/ElementName) | |
E.ElementID.Color or E.ElementName.Color.ElementID.ColororE.ElementName.Color | string | false | Change Composition element color.This is applicable for only Lettering Elements(element type is lettering). Pass query string variable E.ElementID.Color or E.ElementName.Color (Refer Composition->GetDefinition for ElementID/ElementName). Any RGB value is valid for this parameter. Url Encode values before passing. | |
E.ElementID.Font or E.ElementName.Font.ElementID.FontorE.ElementName.Font | string | false | It supports Font and Alphabet query string varaibles. Change Composition element font/alphabet.This is applicable for only Lettering Elements(element type is lettering). Pass query string variable E.ElementID.Font or E.ElementName.Font or E.ElementID.Alphabet or E.ElementName.Alphabet (Refer Composition->GetDefinition for ElementID/ElementName). This value needs to be valid font ReferenceID from the associated font collection. | |
FabricStyle | string | false | This is style unique identifier i.e. style referenceid and this parameter is only applicable to embroidery files. Any invalid value will be discarded i.e. if we don't find the style in our records then no style will be applied to output file. |
Output / Result
Get Tag List (GetTags)
Get List of Composition tags
Get Tag List (GetTags)
Method Url
https://client.livedesignerfusion.com/{username}/Compositions/GetTags?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
Format | string | xml | false | output format. available format's XML,json,jsonp |
Output / Result
Expected Response |
---|
{ "success": "true", "count": 2, "list": [ { "name": "Butterfly", "count": 1 }, { "name": "Disney", "count": 1 } ] } |
Error Response |
---|
{ "success" : "false", "error_code" : "MISSING_PARAMETER", "error_message" : "Detailed error message" } |
Properties
Name | Type | Description |
---|---|---|
success | string | Possible values "true", "false". Return true if successfully executed and return false if failed to execute. |
count | int | Total number of tags. |
list | array/list | Array / List of tags. See object for more details |
list
Name | Type | Description |
---|---|---|
name | string | Tag Name. |
count | string | composition count. |
Expected Response |
---|
<Response> <Success>true</Success> <Count>2</Count> <List> <Tag> <Name>Butterfly</Name> <Count>1</Count> </Tag> <Tag> <Name>Disney</Name> <Count>1</Count> </Tag> </List> </Response> |
Error Response |
---|
<Response> <Success>false</Success> <ErrorCode>MISSING_PARAMETER</ErrorCode> <ErrorMessage>Detailed error message</ErrorMessage> </Response> |
Properties
Name | Type | Description |
---|---|---|
Success | string | Possible values "true", "false". Return true if successfully executed and return false if failed to execute. |
Count | int | Total number of tags. |
List | array/list | Array / List of tags. See object for more details |
List
Name | Type | Description |
---|---|---|
Name | string | Tag Name. |
Count | string | composition count. |
Get Stitch Player (GetStitchPlayer)
Render flash based stitch player. It's always suggested to render in iframe or new tab/window. This will work only for valid compositions.
Get Stitch Player (GetStitchPlayer)
Method Url
https://client.livedesignerfusion.com/{username}/Compositions/GetStitchPlayer?parameterlistParameters
Name | Type | Default | Required | Description |
---|---|---|---|---|
ReferenceID | string | true | Composition ReferenceID. unique identifier of the composition | |
Height | int | 400 | false | Stitch Player Height. |
Width | int | 400 | false | Stitch Player Width. |
Auto | boolean | false | false | Automatically start player on load. |
Speed | int | 75 | false | player rendering speed. |