Search Results for

    Show / Hide Table of Contents

    Class INatManager

    The INatManager handles direct requests to the iNaturalist API.

    Inheritance
    Object
    INatManager
    Namespace: JoshAaronMiller.INaturalist
    Assembly: cs.temp.dll.dll
    Syntax
    public class INatManager : MonoBehaviour

    Fields

    ApiTokenUrl

    Declaration
    public static readonly string ApiTokenUrl
    Field Value
    Type Description
    String

    BaseUrl

    Declaration
    public static readonly string BaseUrl
    Field Value
    Type Description
    String

    Methods

    CreateFlag(WrappedFlag, Action<Identification>, Action<Error>)

    Submit a Flag.

    Declaration
    public void CreateFlag(WrappedFlag flag, Action<Identification> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    WrappedFlag flag

    The parameters of the flag.

    Action<Identification> callback

    A function to callback when the request is done which takes as input the Flag created.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    CreateIdentification(IdentificationSubmission, Action<Identification>, Action<Error>)

    Submit an Identification.

    Declaration
    public void CreateIdentification(IdentificationSubmission identSub, Action<Identification> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    IdentificationSubmission identSub

    The parameters of the Identification. Requires at minimum observation ID and taxon ID.

    Action<Identification> callback

    A function to callback when the request is done which takes as input the Identification created.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    CreateObservation(ObservationSubmission, Action<Observation>, Action<Error>)

    Create an Observation.

    Declaration
    public void CreateObservation(ObservationSubmission observation, Action<Observation> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    ObservationSubmission observation

    An ObservationSubmission object containing the information for the observation.

    Action<Observation> callback

    A function to callback when the request is done which takes as input the Observation object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    CreateObservationPhoto(Int32, String, PhotoFile, Action<ObservationPhoto>, Action<Error>)

    Create an Observation Photo.

    Declaration
    public void CreateObservationPhoto(int obsId, string obsUuid, PhotoFile photo, Action<ObservationPhoto> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID to add the photo to

    String obsUuid

    The UUID of the observation.

    PhotoFile photo

    The Photo to upload.

    Action<ObservationPhoto> callback

    A function to callback when the request is done which takes as input the Observation Photo object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    CreatePhoto(PhotoFile, Action<PhotoJson>, Action<Error>)

    Create a Photo.

    Declaration
    public void CreatePhoto(PhotoFile photo, Action<PhotoJson> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    PhotoFile photo

    The Photo to upload.

    Action<PhotoJson> callback

    A function to callback when the request is done which takes as input the Photo object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    CreateUserMessage(UserMessage, Action<UserMessage>, Action<Error>)

    Send a private message.

    Declaration
    public void CreateUserMessage(UserMessage newMessage, Action<UserMessage> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    UserMessage newMessage

    The message to be sent.

    Action<UserMessage> callback

    A function to callback when the request is done which takes as input the new Message created.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    DeleteFlag(Int32, Action, Action<Error>)

    Delete a Flag.

    Declaration
    public void DeleteFlag(int flagId, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 flagId

    The ID of the flag.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    DeleteIdentification(Int32, Action<String>, Action<Error>)

    Delete an Identification.

    Declaration
    public void DeleteIdentification(int identId, Action<string> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 identId

    The ID of the Identification.

    Action<String> callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    DeleteObservation(Int32, Action, Action<Error>)

    Delete an Observation.

    Declaration
    public void DeleteObservation(int obsId, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The ID of the Observation.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    DeleteObservationPhoto(Int32, Action, Action<Error>)

    Delete an observation photo.

    Declaration
    public void DeleteObservationPhoto(int obsPhotoId, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsPhotoId

    The observation photo to delete.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    DeleteUserMessageThread(Int32, Action, Action<Error>)

    Delete all messages in a message thread.

    Declaration
    public void DeleteUserMessageThread(int threadId, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 threadId

    The thread to delete.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    FaveObservation(Int32, Action<Observation>, Action<Error>)

    "Fave" an Observation.

    Declaration
    public void FaveObservation(int obsId, Action<Observation> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID.

    Action<Observation> callback

    A function to callback when the request is done which takes as input the Observation object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetApiToken()

    Declaration
    public void GetApiToken()

    GetCountUnreadMessages(Action<Count>, Action<Error>)

    Returns a Count of unread messages in the authenticated user's inbox.

    Declaration
    public void GetCountUnreadMessages(Action<Count> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Action<Count> callback

    A function to callback when the request is done which takes as input the Count of unread messages.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetIdentification(Int32, Action<Identification>, Action<Error>)

    Given an ID, returns corresponding Identifications

    Declaration
    public void GetIdentification(int identId, Action<Identification> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 identId

    The identification ID to fetch

    Action<Identification> callback

    A function to callback when the request is done which takes as input the Identification object found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetIdentificationCategories(IdentificationSearch, Action<Results<IdentificationCategoryCount>>, Action<Error>)

    Given an IdentificationSearch object, returns the counts of how many identifications matching the search have a particular category.

    Declaration
    public void GetIdentificationCategories(IdentificationSearch identSearch, Action<Results<IdentificationCategoryCount>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    IdentificationSearch identSearch

    An IdentificationSearch object holding the parameters of the search.

    Action<Results<IdentificationCategoryCount>> callback

    A function to callback when the request is done which takes as input the Results list of IdentificationCategoryCount objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetIdentifications(List<Int32>, Action<Results<Identification>>, Action<Error>)

    Given an array of IDs, returns corresponding Identifications

    Declaration
    public void GetIdentifications(List<int> identIds, Action<Results<Identification>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    List<Int32> identIds

    The list of identification IDs to fetch

    Action<Results<Identification>> callback

    A function to callback when the request is done which takes as input the Results list of Identification objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetIdentificationSpeciesCounts(IdentificationSearch, Action<Results<SpeciesCount>>, Action<Error>)

    Given an IdentificationSearch object, returns the counts of how many identifications matching the search have a particular leaf taxon.

    Declaration
    public void GetIdentificationSpeciesCounts(IdentificationSearch identSearch, Action<Results<SpeciesCount>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    IdentificationSearch identSearch

    An IdentificationSearch object holding the parameters of the search.

    Action<Results<SpeciesCount>> callback

    A function to callback when the request is done which takes as input the Results list of SpeciesCount objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetObservation(Int32, Action<Observation>, Action<Error>)

    Given an ID, returns corresponding observations

    Declaration
    public void GetObservation(int id, Action<Observation> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 id

    The observation ID to fetch

    Action<Observation> callback

    A function to callback when the request is done which takes as input the Observation object found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetObservations(List<Int32>, Action<Results<Observation>>, Action<Error>)

    Given an array of IDs, returns corresponding observations

    Declaration
    public void GetObservations(List<int> ids, Action<Results<Observation>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    List<Int32> ids

    The list of observation IDs to fetch

    Action<Results<Observation>> callback

    A function to callback when the request is done which takes as input the Results list of Observation objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetObservationSpeciesCounts(ObservationSearch, Action<Results<SpeciesCount>>, Action<Error>)

    Given an ObservationSearch object, returns the counts of how many observations matching the search have a particular leaf taxon.

    Declaration
    public void GetObservationSpeciesCounts(ObservationSearch observationSearch, Action<Results<SpeciesCount>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    ObservationSearch observationSearch

    An ObservationSearch object holding the parameters of the search.

    Action<Results<SpeciesCount>> callback

    A function to callback when the request is done which takes as input the Results list of SpeciesCount objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetObservationTaxonSummary(Int32, Action<TaxonSummary>, Action<Error>)

    Given an observation ID, fetch the TaxonSummary of that Observation.

    Declaration
    public void GetObservationTaxonSummary(int obsId, Action<TaxonSummary> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The observation ID to fetch

    Action<TaxonSummary> callback

    A function to callback when the request is done which takes as input the TaxonSummary object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    Remarks

    Probably most useful for getting a Wikipedia summary of the taxon, see TaxonSummary object.

    GetPlaceDetails(List<Int32>, Action<Results<Place>>, Action<Error>, INatManager.PlaceAdminLevel)

    Given a list of IDs, return the corresponding Places.

    Declaration
    public void GetPlaceDetails(List<int> placeIds, Action<Results<Place>> callback, Action<Error> errorCallback, INatManager.PlaceAdminLevel adminLevel = INatManager.PlaceAdminLevel.None)
    Parameters
    Type Name Description
    List<Int32> placeIds

    The IDs of the Places.

    Action<Results<Place>> callback

    A function to callback when the request is done which takes as input the Results list of Places fetched.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    INatManager.PlaceAdminLevel adminLevel

    Optionally, the admin level of the place to search.

    GetPlaceDetails(Int32, Action<Place>, Action<Error>, INatManager.PlaceAdminLevel)

    Given an ID, return the corresponding Place.

    Declaration
    public void GetPlaceDetails(int placeId, Action<Place> callback, Action<Error> errorCallback, INatManager.PlaceAdminLevel adminLevel = INatManager.PlaceAdminLevel.None)
    Parameters
    Type Name Description
    Int32 placeId

    The ID of the Place.

    Action<Place> callback

    A function to callback when the request is done which takes as input the Place fetched.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    INatManager.PlaceAdminLevel adminLevel

    Optionally, the admin level of the place to search.

    GetPlacesAutocomplete(String, Action<Results<Place>>, Action<Error>, Boolean)

    Given a string query, find all places with names starting with the query.

    Declaration
    public void GetPlacesAutocomplete(string query, Action<Results<Place>> callback, Action<Error> errorCallback, bool orderByArea = false)
    Parameters
    Type Name Description
    String query

    The search term.

    Action<Results<Place>> callback

    A function to callback when the request is done which takes as input the Results list of Places fetched.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    Boolean orderByArea

    If true, sort the results by area (default false).

    GetPlacesNearby(Double, Double, Double, Double, Action<PlacesByCuration>, Action<Error>, String, Int32)

    Given a bounding box and optional name query, return nearby places separated by curation status.

    Declaration
    public void GetPlacesNearby(double nelat, double nelng, double swlat, double swlng, Action<PlacesByCuration> callback, Action<Error> errorCallback, string name = "", int perPage = 30)
    Parameters
    Type Name Description
    Double nelat

    The northeast latitude corner of the bounding box.

    Double nelng

    The northeast longitude corner of the bounding box.

    Double swlat

    The southwest latitude corner of the bounding box.

    Double swlng

    The southwest longitude corner of the bounding box.

    Action<PlacesByCuration> callback

    A function to callback when the request is done which takes as input the list of PlacesByCuration fetched.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    String name

    The optional search term for the name.

    Int32 perPage

    Number of results per page (default 30, max 200).

    GetSimilarSpecies(Int32, Action<Results<SpeciesCount>>, Action<Error>)

    Given a Taxon ID, return similar taxa and counts of co-occurrence.

    Declaration
    public void GetSimilarSpecies(int taxonId, Action<Results<SpeciesCount>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 taxonId

    The ID of the taxon to find similar taxa to.

    Action<Results<SpeciesCount>> callback

    A function to callback when the request is done which takes as input the Results list of SpeciesCount objects representing the results.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    Remarks

    The definition of "similar taxa" is operationalized by finding all observations of this taxon or identified as this taxon, then taking the identifications of those observations and counting frequencies of identifications of other taxa. In short, this returns a list mapping taxa to how many times they co-occurred with the searched taxon.

    GetSimilarSpecies(Int32, ObservationSearch, Action<Results<SpeciesCount>>, Action<Error>)

    Given a Taxon ID, return similar taxa and counts of co-occurrence.

    Declaration
    public void GetSimilarSpecies(int taxonId, ObservationSearch obsSearch, Action<Results<SpeciesCount>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 taxonId

    The ID of the taxon to find similar taxa to.

    ObservationSearch obsSearch

    Additional parameters to refine the search, limiting what observations can be included.

    Action<Results<SpeciesCount>> callback

    A function to callback when the request is done which takes as input the Results list of SpeciesCount objects representing the results.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    Remarks

    The definition of "similar taxa" is operationalized by finding all observations of this taxon or identified as this taxon, then taking the identifications of those observations and counting frequencies of identifications of other taxa. In short, this returns a list mapping taxa to how many times they co-occurred with the searched taxon.

    GetTaxonDetails(List<Int32>, Action<Results<Taxon>>, Action<Error>)

    Given an array of IDs, returns corresponding Taxa

    Declaration
    public void GetTaxonDetails(List<int> taxaIds, Action<Results<Taxon>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    List<Int32> taxaIds

    The list of taxa IDs to fetch

    Action<Results<Taxon>> callback

    A function to callback when the request is done which takes as input the Results list of Taxon objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetTaxonDetails(Int32, Action<Taxon>, Action<Error>)

    Given an ID, returns corresponding Taxon

    Declaration
    public void GetTaxonDetails(int taxonId, Action<Taxon> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 taxonId

    The Taxon ID to fetch

    Action<Taxon> callback

    A function to callback when the request is done which takes as input the Taxon object found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetTermsForTaxon(Int32, Action<Results<ControlledTerm>>, Action<Error>)

    Fetch a list of all attribute controlled terms relevant to a taxon as a List of ControlledTerms.

    Declaration
    public void GetTermsForTaxon(int taxonId, Action<Results<ControlledTerm>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 taxonId

    The ID of the Taxon.

    Action<Results<ControlledTerm>> callback

    A function to callback when the request is done which takes as input the Results list of Controlled Terms created.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetTermsIndex(Action<Results<ControlledTerm>>, Action<Error>)

    Fetch a list of all attribute controlled terms as a List of ControlledTerms.

    Declaration
    public void GetTermsIndex(Action<Results<ControlledTerm>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Action<Results<ControlledTerm>> callback

    A function to callback when the request is done which takes as input the Results list of Controlled Terms created.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetUserMe(Action<User>, Action<Error>)

    Fetch the User details for the authenticated user.

    Declaration
    public void GetUserMe(Action<User> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Action<User> callback

    A function to callback when the request is done which takes as input the User object.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    GetUserMessageThread(Int32, Action<Results<UserMessage>>, Action<Error>)

    Retrieves all messages in the specified thread and marks them all as read.

    Declaration
    public void GetUserMessageThread(int threadId, Action<Results<UserMessage>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 threadId

    The thread to fetch.

    Action<Results<UserMessage>> callback

    A function to callback when the request is done which takes as input the thread fetched as a Results list of UserMessages.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    ReviewObservation(Int32, Action<Observation>, Action<Error>)

    Mark an observation as reviewed by the authenticated user.

    Declaration
    public void ReviewObservation(int obsId, Action<Observation> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID.

    Action<Observation> callback

    A function to callback when the request is done which takes as input the Observation object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    SearchIdentifications(IdentificationSearch, Action<Results<Identification>>, Action<Error>)

    Given an IdentificationSearch object, returns a list of matching Identifications

    Declaration
    public void SearchIdentifications(IdentificationSearch identSearch, Action<Results<Identification>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    IdentificationSearch identSearch

    An IdentificationSearch object holding the parameters of the search

    Action<Results<Identification>> callback

    A function to callback when the request is done which takes as input the Results list of Identification objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    SearchObservations(ObservationSearch, Action<Results<Observation>>, Action<Error>)

    Given an ObservationSearch object, returns a list of matching observations

    Declaration
    public void SearchObservations(ObservationSearch obsSearch, Action<Results<Observation>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    ObservationSearch obsSearch

    An ObservationSearch object holding the parameters of the search

    Action<Results<Observation>> callback

    A function to callback when the request is done which takes as input the Results list of Observation objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    SearchTaxa(TaxonSearch, Action<Results<Taxon>>, Action<Error>)

    Given a TaxonSearch object, returns a list of matching taxa

    Declaration
    public void SearchTaxa(TaxonSearch taxonSearch, Action<Results<Taxon>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    TaxonSearch taxonSearch

    An TaxonSearch object holding the parameters of the search

    Action<Results<Taxon>> callback

    A function to callback when the request is done which takes as input the Results list of Taxon objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    SearchUserMessages(MessageSearch, Action<Results<UserMessage>>, Action<Error>)

    Given a MessageSearch object, returns a list of matching user messages

    Declaration
    public void SearchUserMessages(MessageSearch messageSearch, Action<Results<UserMessage>> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    MessageSearch messageSearch

    A MessageSearch object holding the parameters of the search

    Action<Results<UserMessage>> callback

    A function to callback when the request is done which takes as input the Results list of Message objects found.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    Remarks

    This function does not mark these messages as read. See GetUserMessageThread.

    SetApiToken(String)

    Declaration
    public void SetApiToken(string token)
    Parameters
    Type Name Description
    String token

    UnfaveObservation(Int32, Action, Action<Error>)

    "Unfave" an Observation, or delete Fave mark.

    Declaration
    public void UnfaveObservation(int obsId, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    UnreviewObservation(Int32, Action, Action<Error>)

    Mark an observation as unreviewed by the authenticated user.

    Declaration
    public void UnreviewObservation(int obsId, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    UnvoteObservation(Int32, Vote, Action, Action<Error>)

    Delete a Vote from an Observation.

    Declaration
    public void UnvoteObservation(int obsId, Vote vote, Action callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID.

    Vote vote

    The Vote to delete.

    Action callback

    A function to callback when the request is done.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    UpdateFlag(Int32, WrappedFlag, Action<Identification>, Action<Error>)

    Update a Flag.

    Declaration
    public void UpdateFlag(int flagId, WrappedFlag flag, Action<Identification> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 flagId

    The ID of the flag.

    WrappedFlag flag

    The parameters of the flag.

    Action<Identification> callback

    A function to callback when the request is done which takes as input the Flag updated.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    UpdateIdentification(Int32, IdentificationSubmission, Action<Identification>, Action<Error>)

    Update an Identification

    Declaration
    public void UpdateIdentification(int identId, IdentificationSubmission identSub, Action<Identification> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 identId

    The identification ID to update

    IdentificationSubmission identSub

    The updated information for the identification.

    Action<Identification> callback

    A function to callback when the request is done which takes as input the Identification object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    UpdateObservation(Int32, ObservationSubmission, Action<Observation>, Action<Error>)

    Update an Observation.

    Declaration
    public void UpdateObservation(int obsId, ObservationSubmission observation, Action<Observation> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID to update

    ObservationSubmission observation

    An ObservationSubmission object containing the updated information for the observation.

    Action<Observation> callback

    A function to callback when the request is done which takes as input the Observation object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    UpdateObservationPhoto(Int32, Int32, PhotoFile, Action<ObservationPhoto>, Action<Error>)

    Update an Observation Photo.

    Declaration
    public void UpdateObservationPhoto(int obsPhotoId, int position, PhotoFile photo, Action<ObservationPhoto> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsPhotoId

    The Observation Photo ID to update

    Int32 position

    The position in which the photo is displayed for the observation.

    PhotoFile photo

    The Photo to upload.

    Action<ObservationPhoto> callback

    A function to callback when the request is done which takes as input the Observation Photo object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    VoteObservation(Int32, Vote, Action<Observation>, Action<Error>)

    Vote on an Observation; see Vote object for usage.

    Declaration
    public void VoteObservation(int obsId, Vote vote, Action<Observation> callback, Action<Error> errorCallback)
    Parameters
    Type Name Description
    Int32 obsId

    The Observation ID.

    Vote vote

    The Vote to submit.

    Action<Observation> callback

    A function to callback when the request is done which takes as input the Observation object returned.

    Action<Error> errorCallback

    A function to callback when iNaturalist returns an error message.

    In This Article
    Back to top Documentation