Skip to content

Instantly share code, notes, and snippets.

@jrstaatsiii
Last active November 21, 2018 15:33
Show Gist options
  • Save jrstaatsiii/3afa393da604668616b3d3f26e417ac6 to your computer and use it in GitHub Desktop.
Save jrstaatsiii/3afa393da604668616b3d3f26e417ac6 to your computer and use it in GitHub Desktop.
Endpoints
{
"Glossary": [{
"Term": "", // get_the_title();
"Definition": "", // get_the_content();
"Active": "", // get_field('is_active');
"Legacy_ID": "", // get_field('legacy_id');
"ID" : "" // get_the_ID();
]}
}
// $headquarters = get_field('manufacturer_headquarters');
// $regions = get_field('manufacturer_regions');
{
"Manufacturers": [
{
"Mfg_Name" : "", // get_the_title();
"Mfg_Contact_Info" : [
{
"Website" : "", // get_field('manufacturer_website');
"Headquarters" : [
{
"Primary_Email_Address" : "", // $headquarters['email'];
"Primary_Phone_Number" : "", // $headquarters['phone'];
"Address" : "" // $headquarters['address'];
}
],
"Regions" : [
{
"Title" : "", // $region['title'];
"Representative" : "", // $region['rep'];
"Rep_Email" : "", // $region['email'];
"Rep_Phone_Number" : "", // $region['phone'];
},
{
"Title" : "", // $region['title'];
"Representative" : "", // $region['rep'];
"Rep_Email" : "", // $region['email'];
"Rep_Phone_Number" : "", // $region['phone'];
}
]
}
],
"Products" : [], //get_field('associated_products');
"Active" : "", // get_field('is_active');
"Featured" : "", // get_field('is_featured');
"Mfg_Description" : "", // get_the_content();
"Legacy_ID": "", // get_field('legacy_id');
"ID" : "", // get_the_ID();
"Logo_Image" : "" // get_the_post_thumbnail_url();
},
{
"Mfg_Name" : "", // get_the_title();
"Mfg_Contact_Info" : [
{
"Website" : "", // get_field('manufacturer_website');
"Headquarters" : [
{
"Primary_Email_Address" : "", // $headquarters['email'];
"Primary_Phone_Number" : "", // $headquarters['phone'];
"Address" : "" // $headquarters['address'];
}
],
"Regions" : [
{
"Title" : "", // $region['title'];
"Representative" : "", // $region['rep'];
"Rep_Email" : "", // $region['email'];
"Rep_Phone_Number" : "", // $region['phone'];
},
{
"Title" : "", // $region['title'];
"Representative" : "", // $region['rep'];
"Rep_Email" : "", // $region['email'];
"Rep_Phone_Number" : "", // $region['phone'];
}
]
}
],
"Products" : [
"" // get_field('associated_products');
],
"Active" : "", // get_field('is_active');
"Featured" : "", // get_field('is_featured');
"Mfg_Description" : "", // get_the_content();
"Legacy_ID": "", // get_field('legacy_id');
"ID" : "", // get_the_ID();
"Logo_Image" : "" // get_the_post_thumbnail_url();
}
]
}
"News": [{
"Description": "", // get_the_title();
"Active": "", // get_field('is_active');
"Site_URL": "", // get_field('news_url');
"Image_URL": "", // get_the_post_thumbnail_url()'
"Legacy_ID": "", // get_field('legacy_id');
]}
}
{
"PDFs": [{
"PDF_Name": "", // get_the_title();
"Description": "", // get_the_content();
"Share_URL": "", // get_the_field('pdf_file');
"Active": "", // get_field('is_active');
"Featured": "", // get_field('is_featured');
"Related_Products": [], // get_field('related_products');
"Image_URL": "", // get_the_post_thumbnail_url();
"Resource_Category": [], // get_field('category');
"PDF_Subsection": "", // get_field('subsection'); Taxonomy Name
"Legacy_ID": "", // get_field('legacy_id');
"ID": "", // get_the_ID();
"PDF_File": "" // get_the_field('pdf_file');
]}
}
{
"Products": [
{
"Name": "", // get_the_title();
"Description": "", // get_the_content();
"PDFResources": [], // get_field('related_pdfs');
"ConstructionType": [], // get_field('product_construction_type');
"MfgLookup": "", // get_field('related_manufacturer');
"Active": "", // get_field('is_active');
"Featured": "", // get_field('is_featured');
"UPC": "", // get_field('is_featured');
"Image_URL": "", // get_the_post_thumbnail_url();
"Resource_Category": [], // get_field('categories');
"Video_Resources": [], // get_field('related_videos');
"legacy_ID": "", // get_field('legacy_id');
"ID": "", // get_the_ID();
}
]
}
{
"Settings" : [{
"Version" : "", // get_field('version', 'options');
"SynchroMinRequiredBuild" : "", // get_field('min_required_build', 'options');
"Android_Version" : "", // get_field('android_version', 'options');
"Featured_Title_1" : "", // get_field('featured_title_1', 'options');
"Featured_Title_2" : "", // get_field('featured_title_2', 'options');
"Featured_News_Title" : "", // get_field('featured_news_title', 'options');
"Featured_News" : "", // get_field('featured_news', 'options');
"Featured_Articles_Title": "", // get_field('featured_articles_title', 'options');
"Featured_Articles" : "", // get_field('featured_articles', 'options');
"Featured_Videos_Carousel_Title" : "" // get_field('featured_videos_carousel_title', 'options');
"Featured_Videos" : "", // get_field('featured_videos', 'options');
}]
}
{
"Videos": [{
"Video_URL": "", // get_field('video_url'); This file gives you the oembed. You'll need to break down the response
// into it's parts so you can get some of the stuff below
"File_Name": "", // get_field('video_url');
"Share_URL": "", // the_permalink();
"Active": "", // get_field('is_active');
"Featured": "", // get_field('is_featured');
"Video_Type": "", // get_field('video_type');
"Video_Description": "", // get_the_content();
"Steps": [
{
"Title" : "" // $step['title'];
"Timestamp" : "" // $step['time_stamp'];
"Instruction" : "" // $step['instruction'];
}
],
"Related_Products": [], // get_field('related_products');
"Resource_Category": [], // get_field('category');
"Vimeo_Duration": "", // get_field('video_url');
"Vimeo_Thumb_URL": "", // get_field('video_url');
"Legacy_ID": "", // get_field('legacy_id');
"ID": "", // get_the_ID();
"Vimeo_Download_URL": "", // get_field('video_url');
"Video_Name": "", // get_the_title();
]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment