I have an error:
Compilation failed:
Action "GenerateRequestContent Create Folder" (line 1): Reference required to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the implemented interface 'System.Dynamic.IDynamicMetaObjectProvider'. Add one to your project.
Action "GenerateRequestContent Create Folder" (line 3): Reference required to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the implemented interface 'System.Dynamic.IDynamicMetaObjectProvider'. Add one to your project.
Action "GenerateRequestContent Create Folder" (line 10): Reference required to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the implemented interface 'System.Dynamic.IDynamicMetaObjectProvider'. Add one to your project.
From a code in Web API:
Dim json As JObject = New JObject()
'Compulsory Attributes
Dim parent As JObject = New JObject()
parent.Add("id", parent_folder_id)
json.Add("name", folder_name)
json.Add("parent", parent)
'Optional Attributes
If emailAccess = "open" Or emailAccess = "collaborators" Then
Dim folder_upload_email As JObject = New JObject()
folder_upload_email.Add("access", emailAccess)
json.Add("folder_upload_email", folder_upload_email)
End If
If sync_state = "synced" Or sync_state = "not_synced" Or sync_state = "partially_synced" Then
json.Add("sync_state", sync_state)
End If
------------------------------
Jia Qing Tee
------------------------------