ExpertFile Documentation
  • 👋Welcome!
  • Reference
    • API Reference
      • Authentication
      • Experts
        • Expert Directory/Search
        • Expert Profile
          • Accomplishments
          • Affiliations
          • Article
          • Availability
          • Biography
          • Categories
          • Course
          • Education
          • Event Appearances
          • Fees
          • Industries
          • Languages
          • Links
          • Media Appearances
          • Partnerships
          • Patents
          • Research Focus
          • Research Grants
          • Sample Talks
          • Social
          • Tagline
          • Tags
          • Testimonials
          • Topics
          • SEO/Meta Data
      • Staff
        • Staff Directories/Search
        • Staff Profiles
          • Biography
          • Categories
          • Education
          • Languages
          • Links
          • Tagline
          • Tags
      • Inquiries
        • Admission
        • Business
        • Donor
        • Event
        • Expert Witness
        • General
        • Media
        • Meeting
        • Partnership
        • Research
      • Posts (Spotlights)
        • Post Listings/Search
        • Full Post
      • Q&A (Answers)
        • Q&A Listings/Search
        • Individual Q&A
    • Embeds
      • Expert Directory/Search
      • Expert & Staff Profiles
        • Adding Profile Meta Data
      • Featured Experts
      • Inquiries
      • Post Listings/Search
      • Full Post
        • Adding Post Meta Data
      • Q&A Listings/Search
      • Individual Q&A
        • Adding Q&A Meta Data
      • Adding Meta Data to Embeds
    • WordPress
      • Expert Directory/Search
      • Expert & Staff Profiles
      • Featured Experts
      • Inquiries
      • Q&A Listings/Search
      • Individual Q&A
      • Post Listings/Search
      • Full Post
    • Tracking Code (Analytics)
    • Adding Meta Data for SEO
    • Helpers
Powered by GitBook
On this page

Was this helpful?

  1. Reference
  2. API Reference
  3. Inquiries

Partnership

PreviousMeetingNextResearch

Last updated 1 year ago

Was this helpful?

Send Partnership Inquiry

POST

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Url

Name
Type
Description

corporation

number

Corporation ID

Body

Name
Type
Description

firstname*

string

Sender first name

lastname

string

Sender last name

email*

string

Sender email address

phone

string

Sender phone #

website

string

Sender website

organization

string

Sender company

message*

string

Sender message

location_city

string

Sender city

location_state

string

location_country

string

username*

string

Recipient(Expert) username

partner_organization_type*

string

Organization Type(valid input: 'corporate', 'government', 'ngo', 'not_for_profit', 'other')

partner_focus*

string

Focus(valid input: 'business_development', 'corporate', 'fundraising', 'licensing', 'research', 'sponsorship', 'technology', 'other')

Response

{ 
    data: { 
        id: <INQUIRY_ID>
    }, 
    success: true 
}

Code

const data = new URLSearchParams();
const accessToken = `<ACCESS TOKEN>`

data.append('firstname', 'Testfirstname');
data.append('lastname', 'Teslastname');
data.append('email', 'testing@test.com');
data.append('phone', '(555) 555-5555');
data.append('website', 'https://mywebsite.com');
data.append('organization', 'NYT');
data.append('location_city', 'New York City');
data.append('location_state', 'NY');
data.append('location_country', 'US');
data.append('username', '<EXPERT USERNAME>');
data.append('partner_organization_type', 'not_for_profit');
data.append('partner_focus', 'business_development');
data.append('message', 'This is a test message to the expert...');

fetch('https://public-api.expertfile.com/v2/organization/:corporation/inquiry/partnership', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
        'Authorization': `Bearer ${accessToken}`
    },
    body: data
})
.then(response => response.json())
.then(json => {
    const { success, data, error } = json

    if (success) {
        const { id } = data
        console.log('New inquiry id', id)
    }

})
.catch(error => console.error(error));
$accessToken = urlencode('<ACCESS TOKEN>');

$url = 'https://public-api.expertfile.com/v2/organization/:corporation/inquiry/partnership';

$data = ['firstname' => 'Testfirstname',
'lastname' => 'Teslastname',
'email' => 'testing@test.com',
'phone' => '(555) 555-5555',
'website' => 'https://mywebsite.com',
'organization' => 'NYT',
'location_city' => 'New York City',
'location_state' => 'NY',
'location_country' => 'US',
'partner_organization_type' => 'not_for_profit',
'partner_focus' => 'business_development',
'username' => '<EXPERT USERNAME>',
'message' => 'This is a test message to the expert...'];

$ch = curl_init($url);
curl_setopt(
    $ch,
    CURLOPT_HTTPHEADER,
    array('Content-Type: application/x-www-form-urlencoded', 'Authorization: Bearer ' . $accessToken)
);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));

$response = curl_exec($ch);
$json = json_decode($response);

if($json->success){
    var_dump($json->data);
}

curl_close($ch);
curl -X POST https://public-api.expertfile.com/v2/organization/:corporation/inquiry/partnership \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <ACCESS TOKEN>" \
    -d '{ "firstname": "Testfirstname","lastname": "Teslastname","email": "testing@test.com","phone": "(555) 555-5555","website": "https://mywebsite.com","organization": "NYT","location_city": "New York City","location_state": "NY","location_country": "US","username": "<EXPERT USERNAME>", "partner_organization_type": "not_for_profit", "partner_focus": "business_development", "message": "This is a test message to the expert..." }'

Sender state/province See full list

Sender country See full list

/v2/organization/:corporation/inquiry/partnership
here
here